" command to view."/> " command to view.">

Home >Operation and Maintenance >Docker >How to check docker startup parameters

How to check docker startup parameters

尚
Original
2020-03-14 14:39:358123browse

How to check docker startup parameters

How to view the docker run startup parameters of a running docker container:

Method 1: runlike

Usage: runlike 83d7b9fe413b9e1c3c167699c2e20abc

-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!

Statement:
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