1、下面提供了四个 mirror 地址,您可以去掉其中任意一个地址的注释,以使用该 mirror 地址。 # Docker中国 mirror # export REGISTRY_MIRROR="https://registry.docker-cn.com" # 腾讯云 docker hub mirror # export REGISTRY...
将以下代码存成.sh 文件,执行一下即可 #!/bin/sh echo ======== start clean docker containers logs ======== logs=$(find /var/lib/docker/containers/ -name *-json.log) for log in $logs do echo clean lo...
请注意:环境变量$开头的请自行替换 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId>...
version: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '80:80' - '81:81' - '443:443'...
创建环境变量文件 在docker-compose.yml所在目录下创建.env,并键入以下内容 ELK_VERSION=7.14.2 docker-compose.yml version: "3" services: elasticsearch: image: elasticsearch:${ELK_VERSION} container_...
docker-compose docker-compose安装 curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compo...
需要让docker启动时在tcp端口2375上监听api服务 vi /etc/systemd/system/docker-tcp.socket [Unit]Description=Docker Socket for the API [Socket]ListenStream=2375BindIPv6Only=both Service=docker.servi...
<pre class="prism-highlight" prism-language-bash="">systemctl stop docker; //每个liunx版本的命令不一样。 2、创建新的docker目录,执行命令df -h,找一个大的磁盘。我的是放在/home目录下面,我的/home目录大小有...