安装使用runlike

作用:查看指定docker container的启动命令
1.安装Python-pip

sudo apt install python-pip

2.安装runlike

sudo pip install runlike

3.使用runlike
用法:

runlike -p 容器
xqkang@xqkang:/srv/gitlab-runner/config$ runlike -p gitlab-runner
docker run \
	--name=gitlab-runner \
	--hostname=14dfd1f6efe8 \
	--env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
	--env=DEBIAN_FRONTEND=noninteractive \
	--volume=/var/run/docker.sock:/var/run/docker.sock \
	--volume=/srv/gitlab-runner/config:/etc/gitlab-runner \
	--volume=/home/gitlab-runner \
	--volume=/etc/gitlab-runner \
	--restart=no \
	--detach=true \
	-t \
	gitlab/gitlab-runner \
	run --user=gitlab-runner --working-directory=/home/gitlab-runner

你可能感兴趣的:(gitlab)