Difference between revisions of "Docker run"
Jump to navigation
Jump to search
↑ https://docs.docker.com/engine/reference/run/
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 6: | Line 6: | ||
== Examples == | == Examples == | ||
− | docker run --name zabbix-appliance [[-p]] 80:80 -p 10051:10051 -d zabbix/zabbix-appliance:latest | + | docker run --name [[zabbix]]-appliance [[-p]] 80:80 -p 10051:10051 -d zabbix/zabbix-appliance:latest |
− | + | ||
+ | docker run -it --name [[teamcity]]-server-instance -v /YOUR_FOLDER_TO_DATA:/data/teamcity_server/datadir -v /YOUR_FOLDER_TO_LOGS:/opt/teamcity/logs -p 8111:8111 jetbrains/teamcity-server | ||
== Runtime constraints on resources == | == Runtime constraints on resources == |
Revision as of 03:44, 26 April 2020
docker run[1] IMAGE|IMAGE_ID
-e (Environment variables) -d detach --link (deprecated) (See also: Kibana/Install Kibana using docker)
Examples
docker run --name zabbix-appliance -p 80:80 -p 10051:10051 -d zabbix/zabbix-appliance:latest docker run -it --name teamcity-server-instance -v /YOUR_FOLDER_TO_DATA:/data/teamcity_server/datadir -v /YOUR_FOLDER_TO_LOGS:/opt/teamcity/logs -p 8111:8111 jetbrains/teamcity-server
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
- 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
Related terms
- docker start
- dockerd
- /var/run/docker.pid
- /var/run/docker.sock
- PortBindings
- docker volume
See also
docker start
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: