将以下代码存成.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...
创建环境变量文件 在docker-compose.yml所在目录下创建.env,并键入以下内容 ELK_VERSION=7.14.2 docker-compose.yml version: "3" services: elasticsearch: image: elasticsearch:${ELK_VERSION} container_...
需要让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...