查看Docker容器run时启动参数
- 开发技术
- 2022-06-28
- 701
- 0
1.安装epel-release[root@localhost ~]# yum -y install epel-release
2.安装python-pip[root@localhost ~]# yum -y install python-pip
3.安装runlike[root@localhost ~]# pip install runlike
4.查看验证
[root@localhost ~]# runlike -p doclever //查看doclever容器的run参数
docker run \
--name=doclever2 \
--hostname=dec842a46faa \
--mac-address=02:42:ac:11:00:03 \
--env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
--env=PORT=10000 \
--env=DB_FILE=/root/DOClever/data/file \
--env=DB_IMG=/root/DOClever/data/img \
--env=DB_TEMP=/root/DOClever/data/tmp \
--env=DB_HOST=mongodb://DOClever:OsC89rjbXk@date-mogo.com:27017/DOClever \
--volume=/home/DoClever/file:/root/DOClever/data/file \
--volume=/home/DoClever/img:/root/DOClever/data/img \
--volume=/home/DoClever/tmp:/root/DOClever/data/tmp \
-p 7000:10000 \
--restart=always \
--runtime=runc \
--detach=true \
-t \
lw96/doclever