

Through this article, you have installed docker on Centos and learning basic commands of docker. Stopping a running container from the host # docker kill My_OS Conclusion
To reconnect to the running container you need the container ID or name # docker attach My_OS docker-ce-18.09.1 sudo yum install docker-ce-

To Run an Interactive Session into a container # docker run -name My_OS -it centos bash Starting, stats and stop a container # docker start My_OS The latest version of the kernel available for your platform is c)recommended. Before trying to install Docker from binaries, make sure your machine meets the following prerequisites:-a)A 64-bit installation b)Version 3.10 or higher of the Linux kernel. List all the available Docker images on your host # docker imagesĬreating and rune a container # docker run -name My_OS centos cat /etc/hosts Here are the simple steps to install docker in CentOS 7. You are choice image and download it locally, use docker pull command # docker pull centos To search for a Docker image, for example, centos image # docker search centos # chkconfig docker on To Learn basic containers, Docker The finish installed docker, To check status, start, enable services docker the below commands: For Centos 6, you install “epel -release” repositories To install docker on centos 7 # yum update -y & yum install epel-release -y & yum install docker -y To install docker on centos 6 # yum update -y & yum install epel-release -y & yum install docker-io -y Docker is incorporated into Centos 7 extras repositories, due to install simple.
