Difference between revisions of "Docker run"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 26: Line 26:
  
 
== Related terms ==
 
== Related terms ==
[[docker start]]
+
* [[docker start]]
[[dockerd]]
+
* [[dockerd]]
/var/run/[[docker.pid]]
+
* /var/run/[[docker.pid]]
/var/run/[[docker.sock]]
+
* /var/run/[[docker.sock]]
 +
* [[PortBindings (Docker)|PortBindings]]
  
 
== See also ==
 
== See also ==

Revision as of 11:55, 24 April 2020

docker run[1] IMAGE|IMAGE_ID

-e (Environment variables)
-d detach
--link (deprecated) (See also: Kibana/Install Kibana using docker)


Runtime constraints on resources

  • -m --memory=""
  • --oom-kill-disable=false Whether to disable OOM Killer for the container or not.
  • --cpus=0.000


https://medium.com/@oprearocks/how-to-properly-override-the-entrypoint-using-docker-run-2e081e5feb9d

docker run --entrypoint "/bin/ls" debian -al /root
docker run -it --entrypoint /usr/bin/redis-cli example/redis --help


docker run -dit --rm --privileged --name dind docker:dind

Activities

  1. Understand the difference between docker start and docker run: https://stackoverflow.com/questions/34782678/difference-between-running-and-starting-a-docker-container. See also runC
  2. Understand Start configuration behavior and restart policy


Related terms

See also

  • https://docs.docker.com/engine/reference/run/
  • Advertising: