Difference between revisions of "Docker exec"
Jump to navigation
Jump to search
↑ https://docs.docker.com/engine/reference/commandline/exec/
Line 19: | Line 19: | ||
== Related commands == | == Related commands == | ||
* <code>[[kubectl exec]]</code> | * <code>[[kubectl exec]]</code> | ||
+ | * <code>[[podman exec]]</code> | ||
* <code>[[docker system events]] --since '240m' | grep bash</code> | * <code>[[docker system events]] --since '240m' | grep bash</code> | ||
* <code>[[podman attach]]</code> | * <code>[[podman attach]]</code> |
Revision as of 10:56, 9 November 2021
https://docs.docker.com/engine/reference/commandline/exec/
- Login/Connect into a running container:
docker exec[1] -it <my_container_name> bash
docker exec -it <my_container_name> sh
docker run -it --user USER_NAME CONTAINER_NAME
docker exec -it CONTAINER_NAME sh unable to find user nginx: no matching entries in passwd file
docker exec -it festive_lewin sh Error response from daemon: Container 2391a43638f822b1dc3e8d8c79c461959de2238c48d580c7092d5a278e5bd792 is not running
docker exec -u 0 -it CONTAINER_NAME bash
Related commands
kubectl exec
podman exec
docker system events --since '240m' | grep bash
podman attach
docker attach
docker-compose exec
- Dsh Bash alias function for
docker exec -it CONTAINER_NAME sh
See also
docker
[config | pull
|push
|run
|start
, |stop
|cp
|events
|info
|version
|build
|commit
|image
|images
|image ls
|image inspect
|rmi
|rm
|tag
|exec | rename | manifest | save | service update | load
],docker --help
- 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: