insightsger.blogg.se

Install docker on centos 7
Install docker on centos 7




Loading mirror speeds from cached hostfile No Packages marked for removal Update the system : ~]# yum update -y No Match for argument: docker-latest-logrotate No Match for argument: docker-client-latest Make sure no docker version is installed on your OS by typing the dnf command below : ~]# sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine In this guide we will see how to install docker on CentOS 7. Developing with Docker also speeds up applications because it shares the kernel and other Linux resources. Create a Redis container -d Background running -p Port mapping - requirePass redis Specifies the password.Docker is a platform that makes it easy to build, deploy and start applications using containers.You can refer to Github for the configuration of docker redis containers, and the links are from the list of Supported tags and respective Dockerfile links of DockerHub # eg: docker run -p 6379:6379 -name myredis docker.io/redisĬopy the code Take installing REDIS as an example $ docker start container-name/container-id

install docker on centos 7

$docker ps # view running containers Add -a to view all containers Copy the code Image-name: specifies an image template Copy the code $docker run -name container-name -d image-name #-name -d: background running. View your exclusive accelerator address, like Run the following command sudo mkdir -p /etc/docker If you pull the mirror too slow, can consider is to use a mirror image of domestic developers need to open the ali developers account, then use the ali speed up service Ali developer account after login, cr./undefined/i. $docker pull Image name :tag Copy the code $yum install docker $docker -v Copy the code Upgrade software packages and kernels (optional).

install docker on centos 7

$uname -r # Docker requires a CentOS kernel version later than 3.10 Copy the code

install docker on centos 7

Use the IP address, root account, and password 123456 to connect to CentOS DOCKER installation Use the bridge network, select the appropriate network card $IP addr # Query the VM IP address Copy the code by Leanne Cooksley Category:ĭocker Docker installation and Redis containerĭocker installation, environment: VM CentOS 8 Ali Cloud image acceleration Redis container created.ĬentOS 7 installation will not be demonstrated here Connect the CENTOSĮnsure that the VMS and physical servers are on the same network segment






Install docker on centos 7