How to view the docker run startup parameter command (recommended)

How to view the docker run startup parameter command (recommended)

Use runlike to view the docker run startup parameters of a container

Install pip

yum install -y python-pip

Install runlike

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:
  • Detailed explanation of the working principle and usage of the Docker image submission command commit
  • The difference between docker run and start
  • Detailed explanation of the basic commands of Docker run process and image

<<:  Summary of examples of common methods of JavaScript arrays

>>:  Example analysis of MySQL startup and connection methods

Recommend

JavaScript anti-shake case study

principle The principle of anti-shake is: you can...

JavaScript to achieve fixed sidebar

Use javascript to implement a fixed sidebar, for ...

How to use shtml include

By applying it, some public areas of the website c...

JavaScript Timer Details

Table of contents 1. Brief Introduction 2. setInt...

React+TypeScript project construction case explanation

React project building can be very simple, but if...

MySQL 8.0.19 installation and configuration tutorial under Windows 10

I will be learning MySQL next semester. I didn...

How to modify the forgotten password when installing MySQL on Mac

1. Install MySQL database on mac 1. Download MySQ...

mysql having usage analysis

Usage of having The having clause allows us to fi...

Example of how to check the capacity of MySQL database table

This article introduces the command statements fo...

How to create a Docker repository using Nexus

The warehouse created using the official Docker R...

How to communicate between WIN10 system and Docker internal container IP

1. After installing the Windows version of Docker...

Linux operation and maintenance basics httpd static web page tutorial

Table of contents 1. Use the warehouse to create ...

Example of automatic import method of vue3.0 common components

1. Prerequisites We use the require.context metho...

3 functions of toString method in js

Table of contents 1. Three functions of toString ...