docker operation command to
view image
Start container command format
$ sudo docker run [OPTIONS] IMAGE[:TAG] [COMMAND] [ARG...]
docker run -d --net="host" --name=feedbackManager11090 -v /alidata /docker/feedbackManager:/tmp frolvlad/alpine-oraclejdk8:slim java -jar /tmp/operative-feedbackManager-controller-0.0.1.jar
docker run -d --net="host" --name=staticRecipePressureCooker10090 -v / alidata/docker/static-recipe-presscooker:/tmp frolvlad/alpine-oraclejdk8:slim java -jar /tmp/staticRecipePressureCookerWeb-1.0-SNAPSHOT.jar
-d=true or -d
run in background mode
--net="host"
This method will allow the container to access system services such as D-BUS in the host, so it is considered insecure.
--name=feedbackManager11090
Give the container a name
-v
pass the -v parameter, before the colon is the host directory, which must be an absolute path, and after the colon is the path mounted in the image.
frolvlad/alpine-oraclejdk8:slim
a base image
java -jar /tmp/operative-feedbackManager-controller-0.0.1.jar
run this command
docker restart
docker restart staticRecipePressureCooker10090
docker view
docker ps
docker enter container
docker exec -it staticRecipePressureCooker10090 /bin/ bash
docker exec -it staticRecipePressureCooker10090 /bin/su
docker images
View locally downloaded images
docker search mysql
Search images
docker info
Display Docker system information, including the number of images and containers.
sudo docker inspect 8e5b7248472b (IMAGE ID)
to view the details of the image
Reference (docker configuration):
http://bohr.me/docker/Reference
(detailed explanation of Docker command usage):
http://www.server110.com/docker/201411/11122.html
Reference (using docker to quickly build a running environment):
http://blog.csdn.net/syani/article/details/52410543
docker operation command
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326939453&siteId=291194637
Recommended
Ranking