How to view the docker run startup parameters of a running docker container:
Method 1: runlike
Usage: runlike
-p breaks the command line into lines
Installation:
pip install runlike
If you don’t want to install it, execute the command (note: assaflavie/runlike is actually a docker image):
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock assaflavie/runlike YOUR-CONTAINER
Method 2: rekcod
Installation:
rpm:
yum install npm -y npm i -g rekcod
docker:
docker pull nexdrew/rekcod $ alias rekcod="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nexdrew/rekcod"
Command:
rekcod <container-name>
Method without installation:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nexdrew/rekcod <container>
More For related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.
The above is the detailed content of How to check docker startup parameters. For more information, please follow other related articles on the PHP Chinese website!