List the hello-world container (spawned by the image) which exits after displaying its message. List the hello-world image that was downloaded to your machine: # docker image ls This message shows that your installation appears to be working correctly. Status: Downloaded newer image for hello-world:latest Test that your installation works by running the simple Docker image, hello-world: # docker run hello-world Run docker info (or docker version) to view more details of docker # docker info To test the version of docker installed, run below command: # docker -version ![]() Verify status of Docker service: $ systemctl status docker Step 2 -Check Docker version Start the Docker service: $ systemctl start docker ![]() Set Docker to start automatically at boot time: $ systemctl enable docker Install docker-ce: $ yum install docker-ceĪdd your user to the docker group: $ usermod -aG docker $(whoami) Install dependencies: $ yum install -y yum-utils device-mapper-persistent-data lvm2Ĭonfigure the docker-ce repo: $ sudo yum-config-manager -add-repo Summary of docker commands used in our tutorial.īefore we install Docker, let’s first update all packages: $ yum update.
0 Comments
Leave a Reply. |