Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| container:docker:install [2025/07/27 18:40] – ilyasa | container:docker:install [2026/02/01 21:08] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Install Docker on Linux ====== | + | {{indexmenu_n> |
| + | |||
| + | ====== | ||
| There are several ways to install Docker on Linux: | There are several ways to install Docker on Linux: | ||
| Line 19: | Line 21: | ||
| <code bash> | <code bash> | ||
| root@demo: | root@demo: | ||
| - | # Executing docker install script, commit: ... | + | # Executing docker install script, commit: |
| - | ... | + | + sh -c apt-get -qq update >/ |
| + | + sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/ | ||
| + | + sh -c install -m 0755 -d / | ||
| + | + sh -c curl -fsSL " | ||
| + | + sh -c chmod a+r / | ||
| + | + sh -c echo "deb [arch=amd64 signed-by=/ | ||
| + | + sh -c apt-get -qq update >/ | ||
| + | + sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/ | ||
| + | Scanning processes... | ||
| + | + sh -c docker version | ||
| + | Client: Docker Engine - Community | ||
| + | | ||
| + | API version: | ||
| + | Go version: | ||
| + | Git commit: | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | Server: Docker Engine - Community | ||
| + | | ||
| + | Version: | ||
| + | API version: | ||
| + | Go version: | ||
| + | Git commit: | ||
| + | Built: | ||
| + | OS/ | ||
| + | Experimental: | ||
| + | | ||
| + | Version: | ||
| + | GitCommit: | ||
| + | | ||
| + | Version: | ||
| + | GitCommit: | ||
| + | | ||
| + | Version: | ||
| + | GitCommit: | ||
| + | |||
| + | ================================================================================ | ||
| + | |||
| + | To run Docker as a non-privileged user, consider setting up the | ||
| + | Docker daemon in rootless mode for your user: | ||
| + | |||
| + | dockerd-rootless-setuptool.sh install | ||
| + | |||
| + | Visit https:// | ||
| + | |||
| + | |||
| + | To run the Docker daemon as a fully privileged service, but granting non-root | ||
| + | users access, refer to https:// | ||
| + | |||
| + | WARNING: Access to the remote API on a privileged Docker daemon is equivalent | ||
| + | to root access on the host. Refer to the ' | ||
| + | | ||
| + | |||
| + | ================================================================================ | ||
| </ | </ | ||
| Line 35: | Line 93: | ||
| sudo apt-get update | sudo apt-get update | ||
| sudo apt-get install ca-certificates curl | sudo apt-get install ca-certificates curl | ||
| - | ... | + | sudo install -m 0755 -d / |
| + | sudo curl -fsSL https:// | ||
| + | sudo chmod a+r / | ||
| + | |||
| + | # Add the repository to Apt sources: | ||
| + | echo \ | ||
| + | "deb [arch=$(dpkg --print-architecture) signed-by=/ | ||
| + | $(. / | ||
| + | sudo tee / | ||
| + | sudo apt-get update | ||
| </ | </ | ||