How to install Docker and Docker Compose

Docker is a set of platform as a service (PAAS) products that use OS-level virtualization to deliver software in packages called containers. Dependencies Update the system sudo apt update Docker Install Install docker sudo apt install docker.io To check whether docker has installed correctly, run the following command sudo docker -v `Docker version 20.10.12, build 20.10.12-0ubuntu2~20.04.1 To run docker containers the docker run command is used docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 0e03bdcc26d7: Pull complete Digest: sha256:6a65f928fb91fcfbc963f7aa6d57c8eeb426ad9a20c7ee045538ef34847f44f1 Status: Downloaded newer image for hello-world:latest Hello from Docker!...

May 28, 2022 · 1 min · 206 words