[cc lang=”bash”]
docker容器排查镜像问题命令
docker exec -it 你的容器名称 bash
docker ps
docker exec -ti api:1.1 /bin/sh
docker exec -ti f9f7ae0171a3 /bin/bash
docker exec -ti 52e88d20e48b /bin/bash
docker exec -ti a58d4a0474de /bin/bash
docker exec -it gitlab vim /etc/gitlab/gitlab.rb
docker run -t -i quay.io/coreos/prometheus-config-reloader:v0.31.1 /bin/sh
docker run -v /opt/api:/opt/api -t -i ansible-alpine /bin/sh
docker run -t -i api:1.1 /bin/sh
docker run -t -i filter-server:27 /bin/sh
docker run -t -i dac:alpine-consul-mariadb-test /bin/sh
docker run -t -i nginx:6.2 /bin/sh
[/cc]