Docker script for building the development environment.
- Solr installation
- Redis installation
- MySQL installation
- Nacos installation
- Canal installation
- Seata installation
- Minio installation
- Nginx installation
- MongoDB installation
- RocketMQ installation
- RabbitMQ installation
- Zookeeper installation
- Kibana installation
- Logstash installation
- Elasticsearch installation
- Nexus installation
- Jenkins installation
- Gitlab installation
- Gitlab Runner installation
- Portainer installation
- Docker Registry installation
- Ceph, Harbor, K8s, Kubesphere installation
- Since March 2017, Docker has been divided into two branch versions: Docker CE and Docker EE.
- This article introduces the installation and use of Docker CE.
-
Remove it if an older version is already installed
$ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine
-
First, to facilitate the addition of software sources and support for the Device Apper storage type, install the following software packages
$ sudo yum update $ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
-
Add Docker stable version of yum software source
$ sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
-
Then update the yum software source cache and install Docker
$ sudo yum update $ sudo yum -y install docker-ce
-
Finally, confirm the normal startup of Docker service and set it to automatic startup
$ sudo systemctl start docker $ sudo systemctl enable docker
-
Check the installed Docker version
$ docker version
-
Add the following configuration in the docker configuration file
/etc/docker/daemon.json
, If the file does not exist, create a new one.{ "registry-mirrors": [ "https://ccr.ccs.tencentyun.com", "https://ustc-edu-cn.mirror.aliyuncs.com" ] }
-
Restart the docker
$ sudo systemctl daemon-reload $ sudo systemctl restart docker
-
Check whether the mirror takes effect
$ docker info ... Registry: https://ccr.ccs.tencentyun.com https://ustc-edu-cn.mirror.aliyuncs.com
-
Execute the following command, you can customize the version you need by changing the version in the URL.
$ curl -L https://github.com/docker/compose/releases/download/v2.18.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose $ chmod +x /usr/local/bin/docker-compose
-
Check whether the installation is successful
$ docker-compose version