<commit_before>---
layout: global
title: Running Alluxio on Docker
nickname: Alluxio on Docker
group: Deploying Alluxio
priority: 3
---

Alluxio can be run in a Docker container. This guide demonstrates how to run Alluxio
in Docker using the Dockerfile that comes in the Alluxio github repository.

# Prerequisites

A linux machine. For the purposes of this guide, we will use a fresh EC2 machine running
Amazon Linux. The machine size doesn't need to be large; we will use t2.small.

# Launch a standalone cluster

All steps below should be executed from your linux machine.

## Install Docker

```bash
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker $(id -u -n)
```

Finally, log out and log back in again to pick up the group changes

## Clone the Alluxio repo

```bash
git clone https://github.com/Alluxio/alluxio.git
```

## Build the Alluxio Docker image

```bash
cd alluxio/integration/docker
docker build -t alluxio .
```

By default, this will build an image for the latest released version of Alluxio. To build
from a local Alluxio tarball instead, you can use `--build-arg`
```bash
docker build -t alluxio --build-arg ALLUXIO_TARBALL=alluxio-snapshot.tar.gz .
```
<commit_msg>Install git<commit_after>---
layout: global
title: Running Alluxio on Docker
nickname: Alluxio on Docker
group: Deploying Alluxio
priority: 3
---

Alluxio can be run in a Docker container. This guide demonstrates how to run Alluxio
in Docker using the Dockerfile that comes in the Alluxio github repository.

# Prerequisites

A linux machine. For the purposes of this guide, we will use a fresh EC2 machine running
Amazon Linux. The machine size doesn't need to be large; we will use t2.small.

# Launch a standalone cluster

All steps below should be executed from your linux machine.

## Install Docker

```bash
sudo yum install -y docker git
sudo service docker start
sudo usermod -a -G docker $(id -u -n)
```

Finally, log out and log back in again to pick up the group changes

## Clone the Alluxio repo

```bash
git clone https://github.com/Alluxio/alluxio.git
```

## Build the Alluxio Docker image

```bash
cd alluxio/integration/docker
docker build -t alluxio .
```

By default, this will build an image for the latest released version of Alluxio. To build
from a local Alluxio tarball instead, you can use `--build-arg`
```bash
docker build -t alluxio --build-arg ALLUXIO_TARBALL=alluxio-snapshot.tar.gz .
```

{'fraction_non_alphanumeric': 0.07629204265791632, 'fraction_numerical': 0.002461033634126333, 'mean_word_length': 4.008213552361396, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2474759', 'n_tokens_mistral': 799, 'n_tokens_neox': 724, 'n_words': 356}