Merge pull request #16885 from ChrisChinchilla/chrisward/ubuntu-freshness

Small polish for freshness updates
This commit is contained in:
Chris Chinchilla 2023-03-14 14:27:24 +01:00 committed by GitHub
commit 2ce6f7dd72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 18 deletions

View File

@ -6,8 +6,8 @@ development environments non-interactively. The convenience script isn't
recommended for production environments, but it's useful for creating a recommended for production environments, but it's useful for creating a
provisioning script tailored to your needs. Also refer to the provisioning script tailored to your needs. Also refer to the
[install using the repository](#install-using-the-repository) steps to learn [install using the repository](#install-using-the-repository) steps to learn
about installation steps to install using the package repository. The source about installation steps to install using the package repository. The source code
code for the script is open source, and can be found in the for the script is open source, and you can find it in the
[`docker-install` repository on GitHub](https://github.com/docker/docker-install){:target="_blank" [`docker-install` repository on GitHub](https://github.com/docker/docker-install){:target="_blank"
rel="noopener" class="_"}. rel="noopener" class="_"}.

View File

@ -1,5 +1,5 @@
--- ---
description: Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install. description: Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install.
keywords: docker install script, ubuntu docker server, ubuntu server docker, install docker engine ubuntu, install docker on ubuntu server, ubuntu 18.04 docker-ce, install docker engine on ubuntu, ubuntu install docker ce, ubuntu install docker engine keywords: docker install script, ubuntu docker server, ubuntu server docker, install docker engine ubuntu, install docker on ubuntu server, ubuntu 18.04 docker-ce, install docker engine on ubuntu, ubuntu install docker ce, ubuntu install docker engine
redirect_from: redirect_from:
- /ee/docker-ee/ubuntu/ - /ee/docker-ee/ubuntu/
@ -17,8 +17,8 @@ toc_max: 4
--- ---
To get started with Docker Engine on Ubuntu, make sure you To get started with Docker Engine on Ubuntu, make sure you
[meet the prerequisites](#prerequisites), then [meet the prerequisites](#prerequisites), and then follow the
[install Docker](#installation-methods). [installation steps](#installation-methods).
## Prerequisites ## Prerequisites
@ -32,24 +32,25 @@ versions:
- Ubuntu Focal 20.04 (LTS) - Ubuntu Focal 20.04 (LTS)
- Ubuntu Bionic 18.04 (LTS) - Ubuntu Bionic 18.04 (LTS)
Docker Engine is compatible with `x86_64` (or `amd64`), `armhf`, `arm64`, and Docker Engine is compatible with x86_64 (or amd64), armhf, arm64, and
`s390x` architectures. s390x architectures.
### Uninstall old versions ### Uninstall old versions
Older versions of Docker went by the names of `docker`, `docker.io`, or Older versions of Docker went by the names of `docker`, `docker.io`, or
`docker-engine`. Uninstall any such older versions before attempting to install `docker-engine`, you might also have installations of `containerd` or `runc`.
Uninstall any such older versions before attempting to install
a new version: a new version:
```console ```console
$ sudo apt-get remove docker docker-engine docker.io containerd runc $ sudo apt-get remove docker docker-engine docker.io containerd runc
``` ```
It's OK if `apt-get` reports that none of these packages are installed. `apt-get` might report that you have none of these packages installed.
Images, containers, volumes, and networks stored in `/var/lib/docker/` aren't Images, containers, volumes, and networks stored in `/var/lib/docker/` aren't
automatically removed when you uninstall Docker. If you want to start with a automatically removed when you uninstall Docker. If you want to start with a
clean installation, and prefer to clean up any existing data, refer to the clean installation, and prefer to clean up any existing data, read the
[uninstall Docker Engine](#uninstall-docker-engine) section. [uninstall Docker Engine](#uninstall-docker-engine) section.
## Installation methods ## Installation methods
@ -60,15 +61,15 @@ You can install Docker Engine in different ways, depending on your needs:
[Docker Desktop for Linux](../../desktop/install/linux-install.md). This is [Docker Desktop for Linux](../../desktop/install/linux-install.md). This is
the easiest and quickest way to get started. the easiest and quickest way to get started.
- You can also set up and install Docker Engine from - Set up and install Docker Engine from
[Docker's `apt` repository](#install-using-the-repository). [Docker's `apt` repository](#install-using-the-repository).
- [Install it manually](#install-from-a-package) and manage upgrades manually. - [Install it manually](#install-from-a-package) and manage upgrades manually.
- Using a [convenience scripts](#install-using-the-convenience-script). Only - Use a [convenience scripts](#install-using-the-convenience-script). Only
recommended for testing and development environments. recommended for testing and development environments.
### Install using the repository ### Install using the apt repository {#install-using-the-repository}
Before you install Docker Engine for the first time on a new host machine, you Before you install Docker Engine for the first time on a new host machine, you
need to set up the Docker repository. Afterward, you can install and update need to set up the Docker repository. Afterward, you can install and update
@ -145,7 +146,7 @@ Docker from the repository.
</div> </div>
<div id="tab-version" class="tab-pane fade" markdown="1"> <div id="tab-version" class="tab-pane fade" markdown="1">
To install a specific version of Docker Engine, start by list the available To install a specific version of Docker Engine, start by listing the available
versions in the repository: versions in the repository:
```console ```console
@ -240,14 +241,14 @@ download a new file each time you want to upgrade Docker Engine.
You have now successfully installed and started Docker Engine. The `docker` user You have now successfully installed and started Docker Engine. The `docker` user
group exists but contains no users, which is why you're required to use `sudo` group exists but contains no users, which is why you're required to use `sudo`
to run Docker commands. Continue to [Linux post-install](linux-postinstall.md) to run Docker commands. Read [Linux post-install](linux-postinstall.md)
to allow non-privileged users to run Docker commands and for other optional to allow non-privileged users to run Docker commands and for other optional
configuration steps. configuration steps.
#### Upgrade Docker Engine #### Upgrade Docker Engine
To upgrade Docker Engine, download the newer package file and repeat the To upgrade Docker Engine, download the newer package files and repeat the
[installation procedure](#install-from-a-package), pointing to the new file. [installation procedure](#install-from-a-package), pointing to the new files.
{% include install-script.md %} {% include install-script.md %}
@ -267,7 +268,7 @@ To upgrade Docker Engine, download the newer package file and repeat the
$ sudo rm -rf /var/lib/containerd $ sudo rm -rf /var/lib/containerd
``` ```
You must delete any edited configuration files manually. You have to delete any edited configuration files manually.
## Next steps ## Next steps