github.com/akashshinde/docker@v1.9.1/docs/installation/SUSE.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "Installation on openSUSE and SUSE Linux Enterprise"
     4  description = "Installation instructions for Docker on openSUSE and on SUSE Linux Enterprise."
     5  keywords = ["openSUSE, SUSE Linux Enterprise, SUSE, SLE, docker, documentation,  installation"]
     6  [menu.main]
     7  parent = "smn_linux"
     8  +++
     9  <![end-metadata]-->
    10  
    11  # openSUSE and SUSE Linux Enterprise
    12  
    13  This page provides instructions for installing and configuring the lastest
    14  Docker Engine software on openSUSE and SUSE systems.
    15  
    16  >**Note:** You can also find bleeding edge Docker versions inside of the repositories maintained by the [Virtualization:containers project](https://build.opensuse.org/project/show/Virtualization:containers) on the [Open Build Service](https://build.opensuse.org/). This project delivers also other packages that are related with the Docker ecosystem (for example, Docker Compose).
    17  
    18  ## Prerequisites
    19  
    20  You must be running a 64 bit architecture.
    21  
    22  ## openSUSE
    23  
    24  Docker is part of the official openSUSE repositories starting from 13.2. No
    25  additional repository is required on your system.
    26  
    27  ## SUSE Linux Enterprise
    28  
    29  Docker is officially supported on SUSE Linux Enterprise 12 and later. You can find the latest supported Docker packages inside the `Container` module. To enable this module, do the following:
    30  
    31  1. Start YaST, and select *Software > Software Repositories*.
    32  2. Click *Add* to open the add-on dialog.
    33  3. Select *Extensions and Module from Registration Server* and click *Next*.
    34  4. From the list of available extensions and modules, select *Container Module* and click *Next*.
    35     The containers module and its repositories are added to your system.
    36  5. If you use Subscription Management Tool, update the list of repositories at the SMT server.
    37  
    38  Otherwise execute the following command:
    39  
    40      $ sudo SUSEConnect -p sle-module-containers/12/x86_64 -r ''
    41  
    42      >**Note:** currently the `-r ''` flag is required to avoid a known limitation of `SUSEConnect`.
    43  
    44  The [Virtualization:containers project](https://build.opensuse.org/project/show/Virtualization:containers)
    45  on the [Open Build Service](https://build.opensuse.org/) contains also bleeding
    46  edge Docker packages for SUSE Linux Enterprise. However these packages are
    47  **not supported** by SUSE.
    48  
    49  ### Install Docker
    50  
    51  1. Install the Docker package:
    52  
    53          $ sudo zypper in docker
    54  
    55  2. Start the Docker daemon.
    56  
    57          $ sudo systemctl start docker
    58  
    59  3. Test the Docker installation.
    60  
    61          $ sudo docker run hello-world
    62  
    63  ## Configure Docker boot options
    64  
    65  You can use these steps on openSUSE or SUSE Linux Enterprise. To start the `docker daemon` at boot, set the following:
    66  
    67      $ sudo systemctl enable docker
    68  
    69  The `docker` package creates a new group named `docker`. Users, other than
    70  `root` user, must be part of this group to interact with the
    71  Docker daemon. You can add users with this command syntax:
    72  
    73      sudo /usr/sbin/usermod -a -G docker <username>
    74  
    75  Once you add a user, make sure they relog to pick up these new permissions.
    76  
    77  ## Enable external network access
    78  
    79  If you want your containers to be able to access the external network, you must
    80  enable the `net.ipv4.ip_forward` rule. To do this, use YaST.
    81  
    82  For openSUSE Tumbleweed and later, browse to the **System -> Network Settings -> Routing** menu. For SUSE Linux Enterprise 12 and previous openSUSE versions, browse to **Network Devices -> Network Settings -> Routing** menu (f) and check the *Enable IPv4 Forwarding* box.
    83  
    84  When networking is handled by the Network Manager, instead of YaST you must edit
    85  the `/etc/sysconfig/SuSEfirewall2` file needs by hand to ensure the `FW_ROUTE`
    86  flag is set to `yes` like so:
    87  
    88      FW_ROUTE="yes"
    89  
    90  ## Custom daemon options
    91  
    92  If you need to add an HTTP Proxy, set a different directory or partition for the
    93  Docker runtime files, or make other customizations, read the systemd article to
    94  learn how to [customize your systemd Docker daemon options](../articles/systemd.md).
    95  
    96  ## Uninstallation
    97  
    98  To uninstall the Docker package:
    99  
   100      $ sudo zypper rm docker
   101  
   102  The above command does not remove images, containers, volumes, or user created
   103  configuration files on your host. If you wish to delete all images, containers,
   104  and volumes run the following command:
   105  
   106      $ rm -rf /var/lib/docker
   107  
   108  You must delete the user created configuration files manually.
   109  
   110  ## Where to go from here
   111  
   112  You can find more details about Docker on openSUSE or SUSE Linux Enterprise in the
   113  [Docker quick start guide](https://www.suse.com/documentation/sles-12/dockerquick/data/dockerquick.html)
   114  on the SUSE website. The document targets SUSE Linux Enterprise, but its contents apply also to openSUSE.
   115  
   116  Continue to the [User Guide](../userguide/).