github.com/feiyang21687/docker@v1.5.0/docs/sources/installation/SUSE.md (about)

     1  page_title: Installation on openSUSE and SUSE Linux Enterprise
     2  page_description: Installation instructions for Docker on openSUSE and on SUSE Linux Enterprise.
     3  page_keywords: openSUSE, SUSE Linux Enterprise, SUSE, SLE, docker, documentation, installation
     4  
     5  # openSUSE
     6  
     7  Docker is available in **openSUSE 12.3 and later**. Please note that due
     8  to its current limitations Docker is able to run only **64 bit** architecture.
     9  
    10  Docker is not part of the official repositories of openSUSE 12.3 and
    11  openSUSE 13.1. Hence  it is neccessary to add the [Virtualization
    12  repository](https://build.opensuse.org/project/show/Virtualization) from
    13  [OBS](https://build.opensuse.org/) to install the `docker` package.
    14  
    15  Execute one of the following commands to add the Virtualization repository:
    16  
    17      # openSUSE 12.3
    18      $ sudo zypper ar -f http://download.opensuse.org/repositories/Virtualization/openSUSE_12.3/ Virtualization
    19  
    20      # openSUSE 13.1
    21      $ sudo zypper ar -f http://download.opensuse.org/repositories/Virtualization/openSUSE_13.1/ Virtualization
    22  
    23  No extra repository is required for openSUSE 13.2 and later.
    24  
    25  # SUSE Linux Enterprise
    26  
    27  Docker is available in **SUSE Linux Enterprise 12 and later**. Please note that
    28  due to its current limitations Docker is able to run only on **64 bit**
    29  architecture.
    30  
    31  # Installation
    32  
    33  Install the Docker package.
    34  
    35      $ sudo zypper in docker
    36  
    37  Now that it's installed, let's start the Docker daemon.
    38  
    39      $ sudo systemctl start docker
    40  
    41  If we want Docker to start at boot, we should also:
    42  
    43      $ sudo systemctl enable docker
    44  
    45  The docker package creates a new group named docker. Users, other than
    46  root user, need to be part of this group in order to interact with the
    47  Docker daemon. You can add users with:
    48  
    49      $ sudo /usr/sbin/usermod -a -G docker <username>
    50  
    51  To verify that everything has worked as expected:
    52  
    53      $ sudo docker run --rm -i -t opensuse /bin/bash
    54  
    55  This should download and import the `opensuse` image, and then start `bash` in
    56  a container. To exit the container type `exit`.
    57  
    58  If you want your containers to be able to access the external network you must
    59  enable the `net.ipv4.ip_forward` rule.
    60  This can be done using YaST by browsing to the
    61  `Network Devices -> Network Settings -> Routing` menu and ensuring that the
    62  `Enable IPv4 Forwarding` box is checked.
    63  
    64  This option cannot be changed when networking is handled by the Network Manager.
    65  In such cases the `/etc/sysconfig/SuSEfirewall2` file needs to be edited by
    66  hand to ensure the `FW_ROUTE` flag is set to `yes` like so:
    67  
    68      FW_ROUTE="yes"
    69  
    70  
    71  **Done!**
    72  
    73  ## Custom daemon options
    74  
    75  If you need to add an HTTP Proxy, set a different directory or partition for the
    76  Docker runtime files, or make other customizations, read our systemd article to
    77  learn how to [customize your systemd Docker daemon options](/articles/systemd/).
    78  
    79  ## What's next
    80  
    81  Continue with the [User Guide](/userguide/).
    82