Skip to content

wanghongzhou/docker-dev-env

Repository files navigation

docker-dev-env

Docker script for building the development environment.

  1. Solr installation
  2. Redis installation
  3. MySQL installation
  4. Nacos installation
  5. Canal installation
  6. Seata installation
  7. Minio installation
  8. Nginx installation
  9. MongoDB installation
  10. RocketMQ installation
  11. RabbitMQ installation
  12. Zookeeper installation
  13. Kibana installation
  14. Logstash installation
  15. Elasticsearch installation
  16. Nexus installation
  17. Jenkins installation
  18. Gitlab installation
  19. Gitlab Runner installation
  20. Portainer installation
  21. Docker Registry installation
  22. Ceph, Harbor, K8s, Kubesphere installation

Install docker in CentOS8

  • 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.
  1. 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
  2. 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
  3. 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
  4. Then update the yum software source cache and install Docker

    $ sudo yum update
    $ sudo yum -y install docker-ce
  5. Finally, confirm the normal startup of Docker service and set it to automatic startup

    $ sudo systemctl start docker
    $ sudo systemctl enable docker
  6. Check the installed Docker version

    $ docker version

Configuring docker registry mirror

  1. 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"
        ]
    }
  2. Restart the docker

    $ sudo systemctl daemon-reload
    $ sudo systemctl restart docker
  3. Check whether the mirror takes effect

    $ docker info
    ...
    Registry: 
        https://ccr.ccs.tencentyun.com
        https://ustc-edu-cn.mirror.aliyuncs.com

Install the docker compose

  1. 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
  2. Check whether the installation is successful

    $ docker-compose version

About

Docker script for building the development environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages