mirror of https://github.com/docker/docs.git
Puts parallel CE/EE instructions in tabs to shorten page (#2871)
* Puts parallel CE/EE instructions in tabs to shorten page * Removes some pre-tabs formatting
This commit is contained in:
parent
7245c83c17
commit
6f0f24f1bf
|
|
@ -93,115 +93,120 @@ the repository.
|
||||||
|
|
||||||
#### Set up the repository
|
#### Set up the repository
|
||||||
|
|
||||||
The procedure for setting up the repository is different for [Docker CE](#docker-ce) and
|
The procedure for setting up the repository is different for Docker CE and
|
||||||
[Docker EE](#docker-ee).
|
Docker EE.
|
||||||
|
|
||||||
##### Docker CE
|
<ul class="nav nav-tabs">
|
||||||
|
<li class="active"><a data-toggle="tab" data-group="ce" data-target="#ce-repo-setup">Docker CE</a></li>
|
||||||
|
<li><a data-toggle="tab" data-group="ee" data-target="#ee-repo-setup">Docker EE</a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="ce-repo-setup" class="tab-pane fade in active" markdown="1">
|
||||||
|
{% assign download-url-base = "https://download.docker.com/linux/ubuntu" %}
|
||||||
|
|
||||||
{% assign download-url-base = "https://download.docker.com/linux/ubuntu" %}
|
1. Install packages to allow `apt` to use a repository over HTTPS:
|
||||||
|
|
||||||
1. Install packages to allow `apt` to use a repository over HTTPS:
|
```bash
|
||||||
|
$ sudo apt-get install \
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
software-properties-common
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
2. Add Docker's official GPG key:
|
||||||
$ sudo apt-get install \
|
|
||||||
apt-transport-https \
|
|
||||||
ca-certificates \
|
|
||||||
curl \
|
|
||||||
software-properties-common
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Add Docker's official GPG key:
|
```bash
|
||||||
|
$ curl -fsSL {{ download-url-base}}/gpg | sudo apt-key add -
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
Verify that the key fingerprint is `9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88`.
|
||||||
$ curl -fsSL {{ download-url-base}}/gpg | sudo apt-key add -
|
|
||||||
```
|
|
||||||
|
|
||||||
Verify that the key fingerprint is `9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88`.
|
```bash
|
||||||
|
$ sudo apt-key fingerprint 0EBFCD88
|
||||||
|
|
||||||
```bash
|
pub 4096R/0EBFCD88 2017-02-22
|
||||||
$ sudo apt-key fingerprint 0EBFCD88
|
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
|
||||||
|
uid Docker Release (CE deb) <docker@docker.com>
|
||||||
|
sub 4096R/F273FCD8 2017-02-22
|
||||||
|
```
|
||||||
|
|
||||||
pub 4096R/0EBFCD88 2017-02-22
|
3. Use the following command to set up the **stable** repository. You always
|
||||||
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
|
need the **stable** repository, even if you want to install **edge** builds
|
||||||
uid Docker Release (CE deb) <docker@docker.com>
|
as well.
|
||||||
sub 4096R/F273FCD8 2017-02-22
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Use the following command to set up the **stable** repository. You always
|
> **Note**: The `lsb_release -cs` sub-command below returns the name of your
|
||||||
need the **stable** repository, even if you want to install **edge** builds
|
> Ubuntu distribution, such as `xenial`.
|
||||||
as well.
|
>
|
||||||
|
> Sometimes, in a distribution like Linux Mint, you might have to change
|
||||||
|
> `$(lsb_release -cs)` to your parent Ubuntu distribution. For
|
||||||
|
> example: If you are using `Linux Mint Rafaela`, you could use
|
||||||
|
> `trusty`.
|
||||||
|
|
||||||
> **Note**: The `lsb_release -cs` sub-command below returns the name of your
|
**amd64**:
|
||||||
> Ubuntu distribution, such as `xenial`.
|
|
||||||
>
|
|
||||||
> Sometimes, in a distribution like Linux Mint, you might have to change
|
|
||||||
> `$(lsb_release -cs)` to your parent Ubuntu distribution. For
|
|
||||||
> example: If you are using `Linux Mint Rafaela`, you could use
|
|
||||||
> `trusty`.
|
|
||||||
|
|
||||||
**amd64**:
|
```bash
|
||||||
|
$ sudo add-apt-repository \
|
||||||
|
"deb [arch=amd64] {{ download-url-base }} \
|
||||||
|
$(lsb_release -cs) \
|
||||||
|
stable"
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
**armhf**:
|
||||||
$ sudo add-apt-repository \
|
|
||||||
"deb [arch=amd64] {{ download-url-base }} \
|
|
||||||
$(lsb_release -cs) \
|
|
||||||
stable"
|
|
||||||
```
|
|
||||||
|
|
||||||
**armhf**:
|
```bash
|
||||||
|
$ sudo add-apt-repository \
|
||||||
|
"deb [arch=armhf] {{ download-url-base }} \
|
||||||
|
$(lsb_release -cs) \
|
||||||
|
stable"
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
[Learn about **stable** and **edge** channels](/engine/installation/).
|
||||||
$ sudo add-apt-repository \
|
</div>
|
||||||
"deb [arch=armhf] {{ download-url-base }} \
|
<div id="ee-repo-setup" class="tab-pane fade" markdown="1">
|
||||||
$(lsb_release -cs) \
|
1. Install packages to allow `apt` to use a repository over HTTPS:
|
||||||
stable"
|
|
||||||
```
|
|
||||||
|
|
||||||
[Learn about **stable** and **edge** channels](/engine/installation/).
|
```bash
|
||||||
|
$ sudo apt-get install \
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
software-properties-common
|
||||||
|
```
|
||||||
|
|
||||||
##### Docker EE
|
2. Add Docker's official GPG key using your customer Docker EE repository URL:
|
||||||
|
|
||||||
1. Install packages to allow `apt` to use a repository over HTTPS:
|
```bash
|
||||||
|
$ curl -fsSL <DOCKER-EE-URL>/gpg | sudo apt-key add -
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
Verify that the key fingerprint is `DD91 1E99 5A64 A202 E859 07D6 BC14 F10B 6D08 5F96`.
|
||||||
$ sudo apt-get install \
|
|
||||||
apt-transport-https \
|
|
||||||
ca-certificates \
|
|
||||||
curl \
|
|
||||||
software-properties-common
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Add Docker's official GPG key using your customer Docker EE repository URL:
|
```bash
|
||||||
|
$ apt-key fingerprint 0EBFCD88
|
||||||
|
|
||||||
```bash
|
pub 4096R/6D085F96 2017-02-22
|
||||||
$ curl -fsSL <DOCKER-EE-URL>/gpg | sudo apt-key add -
|
Key fingerprint = DD91 1E99 5A64 A202 E859 07D6 BC14 F10B 6D08 5F96
|
||||||
```
|
uid [ultimate] Docker Release (EE deb) <docker@docker.com>
|
||||||
|
sub 4096R/91A29FA3 2017-02-22
|
||||||
|
```
|
||||||
|
|
||||||
Verify that the key fingerprint is `DD91 1E99 5A64 A202 E859 07D6 BC14 F10B 6D08 5F96`.
|
3. Use the following command to set up the **stable** repository, replacing
|
||||||
|
`<DOCKER-EE-URL>` with the URL you noted down in the
|
||||||
|
[prerequisites](#prerequisites).
|
||||||
|
|
||||||
```bash
|
> **Note**: The `lsb_release -cs` sub-command below returns the name of your
|
||||||
$ apt-key fingerprint 0EBFCD88
|
> Ubuntu distribution, such as `xenial`.
|
||||||
|
>
|
||||||
|
|
||||||
pub 4096R/6D085F96 2017-02-22
|
```bash
|
||||||
Key fingerprint = DD91 1E99 5A64 A202 E859 07D6 BC14 F10B 6D08 5F96
|
$ sudo add-apt-repository \
|
||||||
uid [ultimate] Docker Release (EE deb) <docker@docker.com>
|
"deb [arch=amd64] <DOCKER-EE-URL> \
|
||||||
sub 4096R/91A29FA3 2017-02-22
|
$(lsb_release -cs) \
|
||||||
```
|
stable-{{ minor-version }}"
|
||||||
|
```
|
||||||
3. Use the following command to set up the **stable** repository, replacing
|
</div>
|
||||||
`<DOCKER-EE-URL>` with the URL you noted down in the
|
</div>
|
||||||
[prerequisites](#prerequisites).
|
|
||||||
|
|
||||||
> **Note**: The `lsb_release -cs` sub-command below returns the name of your
|
|
||||||
> Ubuntu distribution, such as `xenial`.
|
|
||||||
>
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ sudo add-apt-repository \
|
|
||||||
"deb [arch=amd64] <DOCKER-EE-URL> \
|
|
||||||
$(lsb_release -cs) \
|
|
||||||
stable-{{ minor-version }}"
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Install Docker
|
#### Install Docker
|
||||||
|
|
||||||
|
|
@ -216,10 +221,26 @@ The procedure for setting up the repository is different for [Docker CE](#docker
|
||||||
|
|
||||||
Use this command to install the latest version of Docker:
|
Use this command to install the latest version of Docker:
|
||||||
|
|
||||||
| Docker Edition | Command |
|
<ul class="nav nav-tabs">
|
||||||
|----------------|-------------------------------------|
|
<li class="active"><a data-toggle="tab" data-group="ce" data-target="#ce-install-docker">Docker CE</a></li>
|
||||||
| Docker CE | `sudo apt-get install docker-ce` |
|
<li><a data-toggle="tab" data-group="ee" data-target="#ee-install-docker">Docker EE</a></li>
|
||||||
| Docker EE | `sudo apt-get install docker-ee` |
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="ce-install-docker" class="tab-pane fade in active" markdown="1">
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get install docker-ce
|
||||||
|
```
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="ee-install-docker" class="tab-pane fade" markdown="1">
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get install docker-ee
|
||||||
|
```
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
> **Warning**: If you have multiple Docker repositories enabled, installing
|
> **Warning**: If you have multiple Docker repositories enabled, installing
|
||||||
|
|
@ -246,10 +267,26 @@ The procedure for setting up the repository is different for [Docker CE](#docker
|
||||||
by extension its stability level. To install a specific version, append the
|
by extension its stability level. To install a specific version, append the
|
||||||
version string to the package name and separate them by an equals sign (`=`):
|
version string to the package name and separate them by an equals sign (`=`):
|
||||||
|
|
||||||
| Docker Edition | Command |
|
<ul class="nav nav-tabs">
|
||||||
|----------------|-----------------------------------------------|
|
<li class="active"><a data-toggle="tab" data-group="ce" data-target="#ce-install-version-docker">Docker CE</a></li>
|
||||||
| Docker CE | `sudo apt-get install docker-ce=<VERSION>` |
|
<li><a data-toggle="tab" data-group="ee" data-target="#ee-install-version-docker">Docker EE</a></li>
|
||||||
| Docker EE | `sudo apt-get install docker-ee=<VERSION>` |
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="ce-install-version-docker" class="tab-pane fade in active" markdown="1">
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get install docker-ce=<VERSION>
|
||||||
|
```
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="ee-install-version-docker" class="tab-pane fade" markdown="1">
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get install docker-ee=<VERSION>
|
||||||
|
```
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
The Docker daemon starts automatically.
|
The Docker daemon starts automatically.
|
||||||
|
|
||||||
|
|
@ -282,20 +319,32 @@ a new file each time you want to upgrade Docker.
|
||||||
|
|
||||||
1. This step is different for Docker CE and Docker EE.
|
1. This step is different for Docker CE and Docker EE.
|
||||||
|
|
||||||
- **Docker CE**: Go to
|
<ul class="nav nav-tabs">
|
||||||
[{{ download-url-base }}/dists/]({{ download-url-base }}/dists/), choose your
|
<li class="active"><a data-toggle="tab" data-group="ce" data-target="#ce-install-from-package-docker">Docker CE</a></li>
|
||||||
Ubuntu version, browse to `stable/pool/stable/`, choose either `amd64` or
|
<li><a data-toggle="tab" data-group="ee" data-target="#ee-install-from-package-docker">Docker EE</a></li>
|
||||||
`armhf`,and download the `.deb` file for the Docker version you want to
|
</ul>
|
||||||
install and for your version of Ubuntu.
|
<div class="tab-content">
|
||||||
|
<div id="ce-install-from-package-docker" class="tab-pane fade in active" markdown="1">
|
||||||
|
|
||||||
|
Go to [{{ download-url-base }}/dists/]({{ download-url-base }}/dists/), choose your
|
||||||
|
Ubuntu version, browse to `stable/pool/stable/`, choose either `amd64` or
|
||||||
|
`armhf`,and download the `.deb` file for the Docker version you want to
|
||||||
|
install and for your version of Ubuntu.
|
||||||
|
|
||||||
> **Note**: To install an **edge** package, change the word
|
> **Note**: To install an **edge** package, change the word
|
||||||
> `stable` in the URL to `edge`.
|
> `stable` in the URL to `edge`.
|
||||||
> [Learn about **stable** and **edge** channels](/engine/installation/).
|
> [Learn about **stable** and **edge** channels](/engine/installation/).
|
||||||
|
|
||||||
- **Docker EE**: Go to the Docker EE repository URL associated with your
|
</div>
|
||||||
trial or subscription in your browser. Go to
|
<div id="ee-install-from-package-docker" class="tab-pane fade" markdown="1">
|
||||||
`x86_64/stable-{{ minor-version }}` and download the `.deb` file for the
|
|
||||||
Docker version you want to install.
|
Go to the Docker EE repository URL associated with your
|
||||||
|
trial or subscription in your browser. Go to
|
||||||
|
`x86_64/stable-{{ minor-version }}` and download the `.deb` file for the
|
||||||
|
Docker version you want to install.
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
2. Install Docker, changing the path below to the path where you downloaded
|
2. Install Docker, changing the path below to the path where you downloaded
|
||||||
the Docker package.
|
the Docker package.
|
||||||
|
|
@ -330,10 +379,26 @@ To upgrade Docker, download the newer package file and repeat the
|
||||||
|
|
||||||
1. Uninstall the Docker package:
|
1. Uninstall the Docker package:
|
||||||
|
|
||||||
| Docker Edition | Command |
|
<ul class="nav nav-tabs">
|
||||||
|----------------|--------------------------------|
|
<li class="active"><a data-toggle="tab" data-group="ce" data-target="#ce-uninstall-version-docker">Docker CE</a></li>
|
||||||
| Docker CE | `sudo apt-get purge docker-ce` |
|
<li><a data-toggle="tab" data-group="ee" data-target="#ee-uninstall-version-docker">Docker EE</a></li>
|
||||||
| Docker EE | `sudo apt-get purge docker-ee` |
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="ce-uninstall-version-docker" class="tab-pane fade in active" markdown="1">
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get purge docker-ce
|
||||||
|
```
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div id="ee-uninstall-version-docker" class="tab-pane fade" markdown="1">
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get purge docker-ee
|
||||||
|
```
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
2. Images, containers, volumes, or customized configuration files on your host
|
2. Images, containers, volumes, or customized configuration files on your host
|
||||||
are not automatically removed. To delete all images, containers, and
|
are not automatically removed. To delete all images, containers, and
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue