
Type the following command to install Docker via yum provided by Red Hat: sudo yum install docker. CentOS Docker Docker 64 CentOS CentOS 7 CentOS 8. With this command Docker pulls latest image from repository and creates portainer.io service listening port 9000 with restart policy that starts container if state is any other than runningĭocker run -d -restart unless-stopped -p 9000:9000 -v /var/run/docker.sock:/var/run/docker. How to install and use Docker on RHEL 7 or CentOS 7 (method 1) The procedure to install Docker is as follows: Open the terminal application or login to the remote box using ssh command: ssh userremote-server-name. First we install yum-utils, which gives a command for easily adding repositories. We will install the latest version from main docker repository. STEP 6- Create docker volume for portainer.io data Installing Docker on CentOS 7 The default docker version (with CentOS 7) is 2:1.13.1-162git64e9980, which is quite old. STEP 5- Docker start automatically on reboots STEP 3- If you want to use docker with non-root user, add your user to “docker” group

STEP 2- Download script from and run it.Ĭurl -fsSL -o get-docker.sh

STEP 1- we update list of all package updates from repositories. How to install and setup container with Docker and Portainer.io UI on CentOS 7.
