Difference between revisions of "Docker run"
Jump to navigation
Jump to search
↑ https://docs.docker.com/engine/reference/run/
(# Understand Start configuration behavior and restart policy) |
Tags: Mobile web edit, Mobile edit |
||
Line 10: | Line 10: | ||
* <code>--[[oom]]-kill-disable=false</code> Whether to disable OOM Killer for the container or not. | * <code>--[[oom]]-kill-disable=false</code> Whether to disable OOM Killer for the container or not. | ||
* <code>--cpus=0.000</code> | * <code>--cpus=0.000</code> | ||
+ | |||
+ | |||
+ | https://medium.com/@oprearocks/how-to-properly-override-the-entrypoint-using-docker-run-2e081e5feb9d | ||
+ | <code>docker run --entrypoint "/bin/ls" debian -al /root</code> | ||
+ | <code>docker run -it --entrypoint /usr/bin/redis-cli example/redis --help</code> | ||
Revision as of 13:17, 26 January 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
Activities
- Understand the difference between
docker start
anddocker run
: https://stackoverflow.com/questions/34782678/difference-between-running-and-starting-a-docker-container. See also runC - Understand Start configuration behavior and restart policy
See also
Advertising: