docker mounted in linux

This link: HTTPS: // blog.csdn.net/zhangbeizhen18/article/details/85239758 
error message: the Job for docker.service Because at The failed The Control Process the Exited with error code See "systemctl Status docker.service" and "journalctl -. xe " for the Details. 

use the command: systemctl status docker.service 

view status information to start the following information: 

 

Resolution: access a variety of ways to modify the configuration of the blog does not solve the problem, re-install the same version of Docker also not been resolved, then re-reference several blog Docker install the new version solves this problem, in order to facilitate access to follow-up recording this post. 

Native environment is installed on VirtualBox CentOS7. 

Installation Docker

 1. Check kernel version <Docker claim CentOS system kernel version than 3.10> 
   the uname -R & lt native <kernel version: 3.10.0-327.el7.x86_64> 
2 . The update to the latest package yum 
  the sudo yum Update
 . 3 install the required packages, yum-util provide yum-config-manager function, the other two are driven dependent devicemapper 
  the sudo yum the install -Y-yum-utils devicemapper persistent- Data LVM2
 . 4 disposed yum source. 
  the sudo yum -config-manager---add the repo HTTPS: // download.docker .com / Linux / CentOS / docker-ce.repo 
5 view warehouse docker version.  
  yum List docker -ce --showduplicates | the Sort - r
 6 . installation docker 
  sudo yum install docker - ce
 7 . start Docker, setting boot, stop Docker 
  sudo systemctl Start Docker 
  sudo systemctl enable Docker 
  sudo systemctl sTOP Docker   
 8 . view version 
 Docker version


 9Use it to confirm whether a successful start, the use of search check 
  Docker search MySQL
 10 . View the success log status log 
  systemctl status docker.service  



unloading Docker, for the old version is not installed successfully, relieved. 

 1 query installed packages 
   yum List Installed | grep Docker 
   native install an old version 
   docker.x86_64, Docker -client.x86_64, docker- common.x86_64 
  
    2 package removal installed. 
    Yum - the y-the Remove docker.x86_64                         
    yum - Remove docker- Y client.x86_64                   
    yum -Y-common.x86_64 Remove Docker

docker mounted in linux

Guess you like

Origin www.cnblogs.com/sjzxxy/p/11994590.html