Files
2026-07-20 09:23:17 -04:00

34 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
tags:
- Docker
---
This script is intended as a convenient way to configure docker's package # repositories and to install Docker Engine, This script is not recommended # for production environments. Before running this script, make yourself familiar # with potential risks and limitations, and refer to the installation manual # at https://docs.docker.com/engine/install/ for alternative installation methods.
\# # The script:
\- Requires \`root\` or \`sudo\` privileges to run.
\- Attempts to detect your Linux distribution and version and configure your package management system for you.
\- Doesn't allow you to customize most installation parameters.
\- Installs dependencies and recommendations without asking for confirmation.
\- Installs the latest stable release (by default) of Docker CLI, Docker Engine,  Docker Buildx, Docker Compose, containerd, and runc. When using this script to provision a machine, this may result in unexpected major version upgrades  of these packages. Always test upgrades in a test environment before #   deploying to your production systems.
\- Isn't designed to upgrade an existing Docker installation. When using the script to update an existing installation, dependencies may not be updated to the expected version, resulting in outdated versions.
\# # Source code is available at https://github.com/docker/docker-install/
\# # Usage # ============================================================================== # # 
To install the latest stable versions of Docker CLI, Docker Engine, and their # dependencies:
1\. download the script # #   $ curl -fsSL https://get.docker.com -o install-docker.sh
2\. verify the script's content  $ cat install-docker.sh
3\. run the script with --dry-run to verify the steps it executes $ sh install-docker.sh --dry-run
4\. run the script either as root, or using sudo to perform the installation. $ sudo sh install-docker.sh