This is a machine-translated text which may contain errors!
Install Docker Engine
Herein thou shalt install Docker Engine and the Compose plugin upon a Linux server. Thy labour is complete when hello-world giveth reply and Compose displayeth a version number. Work within the virtual machine’s terminal, one command at a time.
If thou hast already a functioning installation, proceed unto [[Containerbruk Level 1 - Kjor og undersog en container|Run and examine a container]].
What is Docker? doth explain image, container, and registry. Containers and virtual machines sheweth the connection with the Linux VM.
Prerequisites
Thou requirest a Debian or Ubuntu server within Proxmox and rights of administration. Unfurl the Console upon thy own virtual machine and inscribe thy credentials to enter thereunto. Docker is installed and employed within the confines of said virtual machine, not in the Shell of the Proxmox host itself. The entirety of this installation may be wrought forthrightly within the console. To gain entry from thine own device via 🔐 SSH is a distinct matter which thou mayest attend unto at some future date.
‘Tis needful that thou canst reveal the present folder with pwd, spy its contents with ls, and shift betwixt folders with cd. CLI-øvelsen doth provide aid for labor in the terminal. Brukere og rettigheter i Linux expoundeth on users and their tribes; yet the very setting up of root and sudo standeth recorded in the guide to installation below.
New to Proxmox or the foundations of networking?
🖥️ Serverinstallation - VM in Proxmox doth shew how one may create a virtual machine and install either Ubuntu or Debian, step by step. If thou hast no access unto Proxmox, then 🖥️ Serverinstallation - Bare Metal shall demonstrate the very same upon physical hardware directly. 🖥️ Virtualization is that task wherein thou shalt later record thy self-mastery thereof with independence. And 🌐 Network Protocols doth discourse upon IP addresses and ports.
To Install Docker Engine
Do follow the official guide of installation for Docker Engine upon Debian er Docker Engine upon Ubuntu.
Read the prerequisites and employ To Install via the apt Repository for thine operating system. First set up the source of Docker packages, then install Docker Engine and the Compose plugin as is shewn therein.
Long commands sans copy nor paste
Copying and pasting oft fails within the Proxmox console, and many lines in the installation guide be long. Write one line at a time, comparing each character ere thou pressest Enter. Should apt update fail thereafter, ‘tis often a misspelling in the package source or an issue with the network; consult “If Aught Goeth Amiss”.
Debian sans sudo?
Hæd thou to the scripte for roote och suude ere thou beginnest. Thou maist instal suude for th’ common user, or runne the commands of governance as roote in the virtual console. As roote, thou shalt omit suude before thy commandes.
The Installation upon Debian
The commands beneath are plucked from Docker’s guide for Debian on the 14th of October, 2026. Should they fail to work, ‘tis likely Docker hath altered them; compare then with the official page. If thou dost use Ubuntu, follow the guide for Ubuntu instead, for the addresses be distinct.
Certain words in the output from apt stand in Swedish or Danish, such as “Sammanfattning” and “Fortsätta?”. This cometh from Deian’s Norwegian translation and signifieth nought unto the installation.
1. Fetch Docker’s key. The key doth permit apt to verify that the packages verily come from Docker.
The code block contains no comments; therefore, it is returned unchanged as per the integrity requirements.
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
2. Add unto it the storehouse of Docker’s wares. Utter thine first line and press down upon the key named Enter. The terminal shall shew a > before each new verse until thou dost inscribe EOF. Thereafter, tee shall reveal the contents within the scroll. In that place, let Suites display the name of thy version of Debian, as an example, trixie.
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update
After thou hast run sudo apt update, verily shallst thou spy lines forthright from download.docker.com. If they be wanting, ‘tis a foul error in the file. Pray consult “If all goes awry.”
3. Install Docker. Answer Y when apt asketh if thou wilt proceed.
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
The animation likewise displayeth sudo docker run hello-world from thence below.
Do verify thy installation’s state:
docker --version
docker compose version
sudo systemctl status docker
sudo docker run hello-world
hello-world doth download a small image, starteth a trial container and writeth a message. Press q if systemctl status docker sheweth the result in a pager and thou wouldst return to the terminal.
Employ sudo aforehand the Docker commands that follow, should the common user lack access. If thou choosest to grant the common user access through the docker group, runneth the following from the common user’s session. The group bestoweth privileges akin unto root; let this be done only for a user who shall administer the practice server:
sudo usermod -aG docker $USER
If thou runneth this from a root-session sans sudo, employ usermod -aG docker thy_username in lieu of substituting thy_username with thine ordinary user. For $USER within a root-session doth denote root, and not thine own common self.
Sign out and enter once more (or execute newgrp docker) that the alteration may take effect. Until such time, thou mayst wield sudo before the commands in the ensuing exercises.
Checkpoint: Docker is installed
hello-world ought to have shown Hello from Docker!, and docker compose version ought to reveal a version. Shouldst thou find one of these outcomes lacking, mend the installation ere thou dost commence the web server. Shew forthwith the command and its reply when thou seekest aid.
If the Installation Doth Fail
| Symptom | Check Hereunto |
|---|---|
docker or docker compose be found not | That both the Engine and the Compose-plugin are installed per the guidance of thy operating system. |
permission denied upon the Docker-command | Try with sudo. Changes unto groups do require a fresh login. |
| The Docker-service runneth not | Read sudo systemctl status docker and the error-message ere thou tryest again. |
apt update showeth Malformed or Unsupported file | Compare the package-source-file with Docker’s guide, mark by mark. |
NO_PUBKEY or is not signed | Verify that the key is downloaded unto the right path and may be read by apt. |
Could not resolve, Failed to fetch, timeout or dial tcp | The virtual machine reacheth not the package source nor the registry. Use [[Feilsokingsmetode Level 1 - Systematisk feilsiking |
The Next Step
When hello-world hath shown forth Hello from Docker! and Compose doth display a version, proceed thou unto Kjør og undersøk en container. There shalt thou fetch Nginx and discern which container giveth answer.
The exercise of containers standeth now upon Kjør og undersøk en container.
The exercises of storage standeth now upon Bevar data utenfor containeren.

