github.com/eikeon/docker@v1.5.0-rc4/docs/sources/installation/binaries.md (about)

     1  page_title: Installation from Binaries
     2  page_description: Instructions for installing Docker as a binary. Mostly meant for hackers who want to try out Docker on a variety of environments.
     3  page_keywords: binaries, installation, docker, documentation, linux
     4  
     5  # Binaries
     6  
     7  **This instruction set is meant for hackers who want to try out Docker
     8  on a variety of environments.**
     9  
    10  Before following these directions, you should really check if a packaged
    11  version of Docker is already available for your distribution. We have
    12  packages for many distributions, and more keep showing up all the time!
    13  
    14  ## Check runtime dependencies
    15  
    16  To run properly, docker needs the following software to be installed at
    17  runtime:
    18  
    19   - iptables version 1.4 or later
    20   - Git version 1.7 or later
    21   - procps (or similar provider of a "ps" executable)
    22   - XZ Utils 4.9 or later
    23   - a [properly mounted](
    24     https://github.com/tianon/cgroupfs-mount/blob/master/cgroupfs-mount)
    25     cgroupfs hierarchy (having a single, all-encompassing "cgroup" mount
    26     point [is](https://github.com/docker/docker/issues/2683)
    27     [not](https://github.com/docker/docker/issues/3485)
    28     [sufficient](https://github.com/docker/docker/issues/4568))
    29  
    30  ## Check kernel dependencies
    31  
    32  Docker in daemon mode has specific kernel requirements. For details,
    33  check your distribution in [*Installation*](../#installation-list).
    34  
    35  In general, a 3.8 Linux kernel is the minimum requirement for Docker, as
    36  some of the prior versions have known issues that are triggered by Docker.
    37  Linux kernel versions older than 3.8 are known to cause kernel panics and
    38  to break Docker.
    39  
    40  The latest minor version (3.x.y) of the 3.10 (or a newer maintained version)
    41  Linux kernel is recommended. Keeping the kernel up to date with the latest
    42  minor version will ensure critical kernel bugs get fixed.
    43  
    44  Note that Docker also has a client mode, which can run on virtually any
    45  Linux kernel (it even builds on OS X!).
    46  
    47  ## Get the docker binary:
    48  
    49      $ wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker
    50      $ chmod +x docker
    51  
    52  > **Note**:
    53  > If you have trouble downloading the binary, you can also get the smaller
    54  > compressed release file:
    55  > [https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz](
    56  > https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz)
    57  
    58  ## Run the docker daemon
    59  
    60      # start the docker in daemon mode from the directory you unpacked
    61      $ sudo ./docker -d &
    62  
    63  ## Giving non-root access
    64  
    65  The `docker` daemon always runs as the root user, and the `docker`
    66  daemon binds to a Unix socket instead of a TCP port. By default that
    67  Unix socket is owned by the user *root*, and so, by default, you can
    68  access it with `sudo`.
    69  
    70  If you (or your Docker installer) create a Unix group called *docker*
    71  and add users to it, then the `docker` daemon will make the ownership of
    72  the Unix socket read/writable by the *docker* group when the daemon
    73  starts. The `docker` daemon must always run as the root user, but if you
    74  run the `docker` client as a user in the *docker* group then you don't
    75  need to add `sudo` to all the client commands.
    76  
    77  > **Warning**: 
    78  > The *docker* group (or the group specified with `-G`) is root-equivalent;
    79  > see [*Docker Daemon Attack Surface*](
    80  > /articles/security/#docker-daemon-attack-surface) details.
    81  
    82  ## Upgrades
    83  
    84  To upgrade your manual installation of Docker, first kill the docker
    85  daemon:
    86  
    87      $ killall docker
    88  
    89  Then follow the regular installation steps.
    90  
    91  ## Run your first container!
    92  
    93      # check your docker version
    94      $ sudo ./docker version
    95  
    96      # run a container and open an interactive shell in the container
    97      $ sudo ./docker run -i -t ubuntu /bin/bash
    98  
    99  Continue with the [User Guide](/userguide/).