You can read our Docker Tutorial to learn more about Docker. So we have successfully installed Docker on CentOS 7 and created our first docker container to run Apache Web Server. To list all containers, Type: docker ps -a Conclusion So is there any way to install docker 1.9 in centos6 Answer: CentOS 6 and RHEL 6 are no longer supported, and the last build for them is docker 1.7.1. To list running containers on CentOS Docker engine, Type: docker ps How to install docker 1.9+ in CentOS 6.5 Question: I’m now deploying on CentOS 6.5, and I’m now starting to use docker. docker exec -ti docker-httpd /bin/bash List Containers on CentOS 7 We can get an interactive shell session to the container using the 'docker exec' command. I also mapped host port 80 to the port 80 of the new container. docker run -d -name docker-httpd -p 80:80 httpd:latestĪs per the above example, I started a new container called docker-httpd using the httpd image. Then, Start a new Docker Container with the 'docker run' command. Package version: docker-1.12.x86_64Ĭreate your first docker container on CentOS 7įor this example, I will run the Apache HTTPD Web Server on CentOS Docker Engine.įirst, Download the latest Apache httpd image using the 'docker pull' command. You should see the output something like the following: Client: To verify CentOS 7 Docker Installation, Type: docker version To install docker, Open the terminal and type: yum install docker docker-registryĪfter the installation is finished, start the docker service and enable to start docker automatically when system reboot. We will install the docker engine available from the CentOS Base repository.
0 Comments
Leave a Reply. |