<commit_before>## Docker Containers

Fabric8 can use [docker](http://docker.io/) to create new containers; allowing you to reuse the power or docker.

Docker has all the benefits of virtualisation but without any of the costs (in IO / CPU / memory); it basically reuses a single host linux installation and lets you run separate docker containers in what appears to be a sandboxed virtual machine; when in reality its using various Linux technologies like lightweight containers, namespaces, process groups and copy-on-write file systems to simulate virtualiastion.

So Docker makes it super easy to distribute containers and create them quickly.

### Requirements

To be able to try Docker with Fabric8 you need to [install docker](https://www.docker.io/gettingstarted/#h_installation) on the machine you are running a fabric8 container.

The **DOCKER_HOST** environment variable should point to the URL to connect to docker. From docker 1.0 or later this is usually something like:

    export DOCKER_HOST=tcp://127.0.0.1:2375

Fabric8 uses the DOCKER_HOST environment variable to know where the Docker Remote API is located.

Once installed you should be able to run commands like:

    docker ps

The default docker container image for fabric8 is [fabric8/fabric8](https://index.docker.io/u/fabric8/fabric8/)
<commit_msg>updated to the latest docker way to configure the env var<commit_after>## Docker Containers

Fabric8 can use [docker](http://docker.io/) to create new containers; allowing you to reuse the power or docker.

Docker has all the benefits of virtualisation but without any of the costs (in IO / CPU / memory); it basically reuses a single host linux installation and lets you run separate docker containers in what appears to be a sandboxed virtual machine; when in reality its using various Linux technologies like lightweight containers, namespaces, process groups and copy-on-write file systems to simulate virtualiastion.

So Docker makes it super easy to distribute containers and create them quickly.

### Requirements

To be able to try Docker with Fabric8 you need to [install docker](https://www.docker.io/gettingstarted/#h_installation) on the machine you are running a fabric8 container.

The **DOCKER_HOST** environment variable should point to the URL to connect to docker. From docker 1.0 or later this is usually something like:

    export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375

e.g. on a Mac the value of DOCKER_HOST is often something like tcp://192.168.59.103:2375. Fabric8 uses the DOCKER_HOST environment variable to know where the Docker Remote API is located.

Once installed you should be able to run commands like:

    docker ps

The default docker container image for fabric8 is [fabric8/fabric8](https://index.docker.io/u/fabric8/fabric8/)

{'fraction_non_alphanumeric': 0.05813124108416548, 'fraction_numerical': 0.018901569186875893, 'mean_word_length': 4.576540755467197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '601340', 'n_tokens_mistral': 777, 'n_tokens_neox': 695, 'n_words': 381}