Use runlike to view the docker run startup parameters of a container Install pip
Install runlike
View docker run parameters Publishing a container [root@docker01 ~]# docker run -d -v /data/nginx_test2:/data_volume_test2 -v /etc/hosts:/etc/hosts -p 8080:80 --name nginx105 nginx:1.17 # Publish container [root@docker01 ~]# netstat -lntup | grep '8080' # Map to local port tcp6 0 0 :::8080 :::* LISTEN 5153/docker-proxy [root@docker01 ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 74d35e8f150c nginx:1.17 "nginx -g 'daemon of..." 57 seconds ago Up 56 seconds 0.0.0.0:8080->80/tcp nginx105 View startup parameters # Format: runlike -p <container name>|<container ID> [root@docker01 ~]# runlike -p nginx105 docker run \ --name=nginx105 \ --hostname=74d35e8f150c \ --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ --env=NGINX_VERSION=1.17.9 \ --env=NJS_VERSION=0.3.9 \ --env='PKG_RELEASE=1~buster' \ --volume=/data/nginx_test2:/data_volume_test2 \ --volume=/etc/hosts:/etc/hosts \ -p 8080:80 \ --restart=no \ --label maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>" \ --detach=true \ nginx:1.17 \ nginx -g 'daemon off;' Summarize This is the end of this article on how to view the docker run startup parameter command. For more information about viewing the docker run startup parameter command, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Summary of examples of common methods of JavaScript arrays
>>: Example analysis of MySQL startup and connection methods
The specific code of JavaScript date effects is f...
1. MYSQL index Index: A data structure that helps...
Table of contents 1. typeof 2. instanceof 3. Cons...
1. Command Introduction bzip2 is used to compress...
Table of contents background Server Dependencies ...
When doing DB benchmark testing, qps and tps are ...
Use blockquote for long citations, q for short ci...
Preface Before talking about covering index, we m...
1. Pull the MySQL image Get the latest MySQL imag...
A hyperlink URL in Vm needs to be concatenated wit...
Table of contents Overview Precautions 1. Usage 2...
1. Add a hard disk 2. Check the partition status:...
Preface When installing the executable file of a ...
Pull the image docker pull mysql View the complet...
Table of contents Preface Discover the cause Cust...