Worked for a while , The development environment needs docker Environmental Science , however docker I haven't been very familiar , I used to use yum install , however yum It's really hard to install , So I sum up some experience for you :


1, utilize yum Direct installation

The official website directly gives yum The source of , So just download it , and docker The best installation is centos7 and redhat7 The system of , The lower version doesn't consider , Other types of systems are not tested .

 yum -y install yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce

Update if necessary docker Words , There are also specified commands that can be executed :

yum-config-manager --enable docker-ce-edge
yum makecache fast
yum list | grep docker-ce
yum -y update docker-ce
docker version # Lists the specified version package
yum list docker-ce --showduplicates | sort -r # If you need to update to the specified version
yum update docker-ce-18.03..ce-.el7.centos

It's easy to install in this way , But what you need to be aware of is endless failures and retries . It depends on the speed and luck


2, utilize rpm Package installation

open yum Warehouse files can be seen , It corresponds to a web address :

https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
# This just corresponds to centos7 Of , If you need, you can go to the corresponding file to find
# Another thing to note ,docker The installation of requires two files , One is docker, One is docker-ce, for example :
#docker-ce-17.03..ce-.el7.centos.x86_64.rpm
#docker-ce-selinux-17.03..ce-.el7.centos.noarch.rpm # And then use it rpm Install or yum localinstall * Just install it

3, Problems encountered during installation

1. During the installation, I encountered the installation of a lower version , Report a problem with the dependency package , But there's no problem installing a higher version

 Loaded plug-in :fastestmirror, langpacks
Checking docker-ce-17.12..ce-.el7.centos.x86_64.rpm: docker-ce-17.12..ce-.el7.centos.x86_64
docker-ce-17.12..ce-.el7.centos.x86_64.rpm Will be installed
Resolving dependencies
--> Checking transactions
---> software package docker-ce.x86_64.0.17.12.0.ce-.el7.centos Will be install
--> Dealing with dependencies container-selinux >= 2.9, It's packaged docker-ce-17.12..ce-.el7.centos.x86_64 need

The problem is that there are container-selinux , But it doesn't exist docker-ce-linux This package , Because of existence container-selinux It can't be installed docker-ce-linux, Just unload it .

2, Just installed docker Can't start

Check /etc/docker/daemon.json    This file , Generally, there is a problem with the configuration of this file ,

Or delete it , Or check the format inside

docker More articles on installation and tips for

  1. docker—— erection of tank tomcat

    Write it at the front : continue docker Learning from , To study the docker After the basic common commands of , I am here docker Installation on jdk,tomcat Two basic java web Tools , Here is a record of the operation process . Software preparation : 1.jdk-7 ...

  2. docker Start installation and other commands

    Confirm the installation url whereis curl start-up docker service : sudo service docker start sudo service docker stop install curl sudo ap ...

  3. DOCKER windows install

    DOCKER windows install 1. Download package 2. Set the environment variable 3. start-up DOCKERT 4. analysis start.sh 5. utilize SSH Tool management 6. Download mirroring 6.1 Download address 6.2 use FTP ...

  4. stay docker Install and deploy applications inside

    I've been doing docker The installation and packaging of , Learn a lot , Write it down on your blog . Environmental Science centos6 ,docker Basic image centos6 1. Create a local base image , Install the basic command pack (1)Dockerfile,D ...

  5. Docker Centos install Redis And problem solving

    Last post Redis Installation and master-slave configuration   It introduces redis Installation configuration , Another paper introduces Docker Centos install Openssh . Today, I'll combine the two papers —— stay Docker Centos Build... In the environment r ...

  6. Docker Centos install Mysql5.6

    A previous essay <Docker Centos install Openssh>  It's about how to be basic centos Build in the mirror ssh service , Build other services on this basis . This article continues to introduce in centos_ssh Build on that my ...

  7. Docker Installation and simple use of

    1.  Docker Installation ( there “ install docker” It's actually installation Docker Engine) $ sudo apt-get intasll docker.io note: apt-get yes ubun ...

  8. docker Installation

    The official website has all kinds of environment Installation guide , Here is the main introduction Ubuntu and CentOS Series installation . Ubuntu Series installation Docker Install through the package of the system Ubuntu 14.04 The version number system already comes with D ...

  9. VS2013 Total strategy ( install , skill , Shortcut key , plug-in unit )!

    A good workman does his work well , You must sharpen your tools first .VS2013 Total strategy ( install , skill , Shortcut key , plug-in unit )! Previous article <c++ Performance of , c# The capacity of ?! Fish and bear paw can have both ,.NET NATIVE First glance > Thanks for your love and editor's recommendation , Here it is ...

Random recommendation

  1. BZOJ4380 : [POI2015]Myjnie

    take $c$ discretization , set up : $f[i][j][k]$ As interval $[i,j]$ The minimum value is $k$ The biggest benefit of . $g[i][j][k]$ by $\max(g[i][j][k..m])$. $h[i][j]$ For the present DP District ...

  2. Get in line k Big template

    int get_kth(int l,int r) { if (l==r) return a[r]; ]; while (i<j) { while (a[i]<mid) i++; while ...

  3. Suse linux 11 SP2 nginx Use notes

    1. Download source code http://nginx.org/en/download.html   2. DAV The module is not compiled by default , To add compilation options # ./configure --with-http_dav_mo ...

  4. python Learning materials

    http://woodpecker.org.cn/diveintopython/ http://www.cnblogs.com/txw1958/archive/2012/12/10/A_Byte_of ...

  5. Regular language engine : A simple LEX and YACC Combined with the application examples

    This paper first describes LEX And YACC How to write . And then use it LEX And YACC Write a simple regular language engine ( Closure and or operations are not supported at this time ), The generated intermediate language is C Language . The regular engine should generate NFA or DFA The input file of the simulator , But in ...

  6. sublime text 3 build python

    1.ST3 Download address : http://www.sublimetext.com/3 2. install Sublime Text Build 3114 Setup.exe Applications . 3.ST3 The advantage of our tools is lightweight , Jane ...

  7. 【vue】index.html main.js app.vue index.js How to combine ? How to pack it ? Information collected

    Reprint :https://blog.csdn.net/yudiandemingzi/article/details/80247137 How to combine : One . Start project First step :cmd Enter the project file , function npm ...

  8. Tomcat7 Debugging runtime environment construction and source code analysis

    1. The following tools need to be ready JDK 1.6+ Maven 2 or 3 TortoiseSVN 1.7+ ( from 1.7 Start ”.svn” The catalog is all in one place , There's no longer one in every catalog ) Eclipse 3.5+ ...

  9. Agile software development practices -Sprint Retrospective Meeting( turn )

    Introduce : In the agile development model ,Sprint Retrospective Meeting It's also an essential part , It usually happens in every Sprint Ending , Its main function is to make a periodic summary of the current iteration cycle , Including good ...

  10. [Bayes] *Bayesian Deep Learning for Transparency Improvement

    Why is it necessary to learn statistical machine learning ? Because you don't have that much data Because the unknown needs to be explained by theory in the end rule-based ? Based on the probability ? ---- Turing award winner . The father of Bayes Judea Pearl On the limitations of deep learning , Want to build a free will machine ...