Installing Docker On Ubuntu Linux
Quote from A1 Computers on January 13, 2023, 11:07 am
Install Docker Engine, containerd, and Docker Compose.
To install the latest version, run:
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Verify that the Docker Engine installation is successful by running the
hello-world
image:$ sudo docker run hello-world
This command downloads a test image and runs it in a container. When the
container runs, it prints a confirmation message and exits.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 usesudo
to
run Docker commands. Continue to Linux
post-install to allow non-privileged users to run Docker
commands and for other optional configuration steps.
-
Install Docker Engine, containerd, and Docker Compose.
To install the latest version, run:
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
-
Verify that the Docker Engine installation is successful by running the
hello-world
image:$ sudo docker run hello-world
This command downloads a test image and runs it in a container. When the
container runs, it prints a confirmation message and exits.
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
to
run Docker commands. Continue to Linux
post-install to allow non-privileged users to run Docker
commands and for other optional configuration steps.