How to check docker startup parameters

Release: 2020-03-14 14:39:35
Original
8083 people have browsed it

How to check docker startup parameters

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
Copy after login

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
Copy after login

docker:

docker pull nexdrew/rekcod
$ alias rekcod="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nexdrew/rekcod"
Copy after login

Command:

rekcod <container-name>
Copy after login

Method without installation:

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nexdrew/rekcod <container>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template