# Docker

Related articles

- Arch systemd container
- Linux Containers
- Lxc-systemd

Docker is a utility to pack, ship and run any application as a lightweight container.

## Installation

Docker can be installed with the docker package, available in the official repositories.

Note: FS#38029 removed i686 version of the package in docker 1:0.7.1-1.
Note: As of 2014/03/11, docker is still under heavy development, docker 0.8.0 does not work with lxc 1.0, use docker-git instead.

## Setup

This step is optional.

Edit `/etc/systemd/system/docker.service` as follows, where `http_proxy` is your proxy server and `-g <path>` is your docker home. The path defaults to `/var/cache/docker`.

    .include /usr/lib/systemd/system/docker.service
    [Service]
    # assume 192.168.1.1 is your proxy server, don't use 127.0.0.1
    Environment="http_proxy=192.168.1.1:3128"
    ExecStart=
    ExecStart=/usr/bin/docker -d -g /var/yourDockerDir

Note: http_proxy does not seem to work.

## Docker 0.9.0+ and LXC

Since version 0.9.0 Docker provides a new way to start containers without relying on LXC called libcontainer.

Hence, you will not be able to use `lxc-attach` with containers managed by Docker 0.9.0+ by default. It is required to make Docker daemon run with `-e lxc` as an argument.

You can create a file named `lxc.conf` under `/etc/systemd/system/docker.service.d/` with the following contents:

    [Service]
    ExecStart=
    ExecStart=/usr/bin/docker -d -e lxc

## Skype

See Skype#Docker.

Category:

- Virtualization