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 <[email protected]>" \ --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
principle The principle of anti-shake is: you can...
Use javascript to implement a fixed sidebar, for ...
By applying it, some public areas of the website c...
Table of contents 1. Brief Introduction 2. setInt...
React project building can be very simple, but if...
I will be learning MySQL next semester. I didn...
1. Install MySQL database on mac 1. Download MySQ...
Usage of having The having clause allows us to fi...
This article introduces the command statements fo...
The warehouse created using the official Docker R...
1. After installing the Windows version of Docker...
Table of contents 1. Use the warehouse to create ...
1. Prerequisites We use the require.context metho...
Table of contents 1. Three functions of toString ...
If we introduce the nesting rules of basic HTML w...