mirror of https://github.com/docker/docs.git
engine/install: SLES: use tabs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
480d1bf210
commit
c65599bdff
|
@ -119,8 +119,17 @@ $ sudo zypper addrepo {{ download-url-base }}/docker-ce.repo
|
|||
|
||||
#### Install Docker Engine
|
||||
|
||||
1. Install the _latest version_ of Docker Engine, containerd, and Docker Compose
|
||||
or go to the next step to install a specific version:
|
||||
1. Install Docker Engine, containerd, and Docker Compose:
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a data-toggle="tab" data-target="#tab-latest">Latest</a></li>
|
||||
<li><a data-toggle="tab" data-target="#tab-version">Specific version</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<br>
|
||||
<div id="tab-latest" class="tab-pane fade in active" markdown="1">
|
||||
|
||||
To install the latest version, run:
|
||||
|
||||
```console
|
||||
$ sudo zypper install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
|
@ -132,11 +141,11 @@ $ sudo zypper addrepo {{ download-url-base }}/docker-ce.repo
|
|||
This command installs Docker, but it doesn't start Docker. It also creates a
|
||||
`docker` group, however, it doesn't add any users to the group by default.
|
||||
|
||||
2. To install a _specific version_ of Docker Engine, list the available versions
|
||||
in the repo, then select and install:
|
||||
</div>
|
||||
<div id="tab-version" class="tab-pane fade" markdown="1">
|
||||
|
||||
a. List and sort the versions available in your repo. This example sorts
|
||||
results by version number, highest to lowest, and is truncated:
|
||||
To install a specific version, start by listing the available versions in
|
||||
the repository:
|
||||
|
||||
```console
|
||||
$ sudo zypper search -s --match-exact docker-ce | sort -r
|
||||
|
@ -148,10 +157,13 @@ $ sudo zypper addrepo {{ download-url-base }}/docker-ce.repo
|
|||
The list returned depends on which repositories are enabled, and is specific
|
||||
to your version of SLES.
|
||||
|
||||
b. Install a specific version by its fully qualified package name, which is
|
||||
the package name (`docker-ce`) plus the version string (fourth column),
|
||||
Install a specific version by its fully qualified package name, which is
|
||||
the package name (`docker-ce`) plus the version string (2nd column),
|
||||
separated by a hyphen (`-`). For example, `docker-ce-3:23.0.5`.
|
||||
|
||||
Replace `<VERSION_STRING>` with the desired version and then run the following
|
||||
command to install:
|
||||
|
||||
```console
|
||||
$ sudo zypper install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
```
|
||||
|
@ -159,13 +171,17 @@ $ sudo zypper addrepo {{ download-url-base }}/docker-ce.repo
|
|||
This command installs Docker, but it doesn't start Docker. It also creates a
|
||||
`docker` group, however, it doesn't add any users to the group by default.
|
||||
|
||||
3. Start Docker.
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
2. Start Docker.
|
||||
|
||||
```console
|
||||
$ sudo systemctl start docker
|
||||
```
|
||||
|
||||
4. Verify that the Docker Engine installation is successful by running the
|
||||
3. Verify that the Docker Engine installation is successful by running the
|
||||
`hello-world` image.
|
||||
|
||||
```console
|
||||
|
|
Loading…
Reference in New Issue