![]() ![]() Through this article, you have installed docker on Centos and learning basic commands of docker. Some of the things you can use yum for are: List packages from repositories. Stopping a running container from the host # docker kill My_OS Conclusion The packages you can install via yum are available on remote repositories that can be queried using the yum command. To reconnect to the running container you need the container ID or name # docker attach My_OS ![]() 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 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 ![]() Copy code snippet opchonsu-ol7-vm2 sudo yum install docker-engine docker-cli Loaded plugins: langpacks, ulninfo Resolving Dependencies. You are choice image and download it locally, use docker pull command # docker pull centos Instructions to install UEK are detailed in Setting up Unbreakable Enterprise Kernel. 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 yum -y install wget wget -O /etc//docker-ce.repo Install the latest version of Docker CE using the following command. Docker is incorporated into Centos 7 extras repositories, due to install simple. ![]()
0 Comments
Leave a Reply. |