国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Ubuntu 16.04+、Debian 8+、CentOS 7+
创建或修改 /etc/docker/daemon.json:
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
| # Maintainer: Jakub Hajek, [email protected] | |
| # | |
| # docker stack deploy -c stack-elastic.yml elastic | |
| # | |
| # The stack creates Elasticsearch cluster consiting of | |
| # - 3 dedicated master nodes in order to keep quorum | |
| # - 4 dedicated data nodes to manage CRUD, | |
| # | |
| # Docker compose file to easily deploy Elasticsearch cluster 7.x on Docker Swarm cluster. |