Darmowy konwerter
Polecenia Dockera Ściągawka
Kompleksowy ściągawka do poleceń Dockera. Przeszukuj ponad 70 podstawowych poleceń Dockera, korzystając z przykładów, opisów i kopii dostępnych jednym kliknięciem.
docker run
Create and start a new container from an image
Przykład:
docker run -d -p 80:80 --name web nginxdocker run -it
Run a container interactively with a terminal
Przykład:
docker run -it ubuntu bashdocker run --rm
Run a container and remove it automatically when it exits
Przykład:
docker run --rm alpine echo 'hello'docker run -e
Set environment variables in a container
Przykład:
docker run -e NODE_ENV=production node:18docker run -v
Mount a volume or bind mount into a container
Przykład:
docker run -v /host/path:/container/path nginxdocker start
Start one or more stopped containers
Przykład:
docker start my-containerdocker stop
Stop one or more running containers gracefully
Przykład:
docker stop my-containerdocker restart
Restart one or more containers
Przykład:
docker restart my-containerdocker rm
Remove one or more stopped containers
Przykład:
docker rm my-containerdocker rm -f
Force-remove a running container
Przykład:
docker rm -f my-containerdocker ps
List running containers
Przykład:
docker psdocker ps -a
List all containers including stopped ones
Przykład:
docker ps -adocker exec
Run a command in a running container
Przykład:
docker exec -it my-container bashdocker logs
Fetch logs from a container
Przykład:
docker logs -f --tail 100 my-containerdocker inspect
Return low-level information about a container or image
Przykład:
docker inspect my-containerdocker stats
Display live resource usage statistics for containers
Przykład:
docker stats my-containerdocker top
Display running processes inside a container
Przykład:
docker top my-containerdocker pause
Pause all processes within a container
Przykład:
docker pause my-containerdocker unpause
Unpause all processes within a paused container
Przykład:
docker unpause my-containerdocker rename
Rename an existing container
Przykład:
docker rename old-name new-namedocker kill
Kill a running container by sending a signal
Przykład:
docker kill --signal=SIGTERM my-containerdocker cp
Copy files between a container and the host filesystem
Przykład:
docker cp my-container:/app/config.json ./config.jsondocker attach
Attach local I/O streams to a running container
Przykład:
docker attach my-containerdocker pull
Download an image from a registry
Przykład:
docker pull nginx:latestdocker push
Upload an image to a registry
Przykład:
docker push myuser/myimage:v1.0docker build
Build an image from a Dockerfile
Przykład:
docker build -t myapp:latest .docker build --no-cache
Build an image without using the layer cache
Przykład:
docker build --no-cache -t myapp:latest .docker images
List all locally available images
Przykład:
docker imagesdocker rmi
Remove one or more images
Przykład:
docker rmi nginx:old myimage:v1docker tag
Create a tag referencing a source image
Przykład:
docker tag myapp:latest myuser/myapp:v2.0docker history
Show the history of an image's layers
Przykład:
docker history nginx:latestdocker save
Save an image to a tar archive
Przykład:
docker save -o myimage.tar myapp:latestdocker load
Load an image from a tar archive
Przykład:
docker load -i myimage.tardocker import
Import a tarball to create a filesystem image
Przykład:
docker import mycontainer.tar myimage:importeddocker export
Export a container's filesystem as a tar archive
Przykład:
docker export my-container > mycontainer.tardocker commit
Create a new image from a container's changes
Przykład:
docker commit my-container myimage:snapshotdocker image prune
Remove unused (dangling) images
Przykład:
docker image prune -adocker network create
Create a new network
Przykład:
docker network create --driver bridge my-networkdocker network ls
List all networks
Przykład:
docker network lsdocker network rm
Remove one or more networks
Przykład:
docker network rm my-networkdocker network inspect
Show detailed information about a network
Przykład:
docker network inspect my-networkdocker network connect
Connect a running container to a network
Przykład:
docker network connect my-network my-containerdocker network disconnect
Disconnect a container from a network
Przykład:
docker network disconnect my-network my-containerdocker network prune
Remove all unused networks
Przykład:
docker network prunedocker volume create
Create a named volume
Przykład:
docker volume create my-volumedocker volume ls
List all volumes
Przykład:
docker volume lsdocker volume rm
Remove one or more volumes
Przykład:
docker volume rm my-volumedocker volume inspect
Display detailed information about a volume
Przykład:
docker volume inspect my-volumedocker volume prune
Remove all unused local volumes
Przykład:
docker volume prunedocker compose up
Create and start all services defined in compose file
Przykład:
docker compose up -ddocker compose down
Stop and remove containers, networks from compose
Przykład:
docker compose down --volumesdocker compose ps
List containers for a compose project
Przykład:
docker compose psdocker compose logs
View output from compose service containers
Przykład:
docker compose logs -f webdocker compose build
Build or rebuild services defined in compose file
Przykład:
docker compose build --no-cache webdocker compose pull
Pull service images defined in the compose file
Przykład:
docker compose pulldocker compose restart
Restart service containers
Przykład:
docker compose restart webdocker compose exec
Execute a command in a running service container
Przykład:
docker compose exec web bashdocker compose run
Run a one-off command on a service
Przykład:
docker compose run --rm web npm testdocker compose stop
Stop running containers without removing them
Przykład:
docker compose stop webdocker compose config
Validate and view the merged compose configuration
Przykład:
docker compose configdocker info
Display system-wide Docker information
Przykład:
docker infodocker version
Show the Docker client and daemon version
Przykład:
docker versiondocker system df
Show disk usage by Docker objects
Przykład:
docker system df -vdocker system prune
Remove all unused Docker resources at once
Przykład:
docker system prune -a --volumesdocker events
Stream real-time events from the Docker daemon
Przykład:
docker events --filter type=containerdocker login
Log in to a Docker registry
Przykład:
docker login registry.example.comdocker logout
Log out from a Docker registry
Przykład:
docker logout registry.example.comdocker search
Search Docker Hub for images
Przykład:
docker search --filter stars=100 nginxdocker context ls
List available Docker contexts
Przykład:
docker context lsdocker context use
Switch the active Docker context
Przykład:
docker context use my-remote-hostPowiązane narzędzia
Zobacz wszystkie narzędziaPolecenia Gita Ściągawka
Kompleksowy ściągawka do poleceń Git. Przeszukuj ponad 80 podstawowych poleceń Git, korzystając z przykładów, opisów i kopii dostępnych jednym kliknięciem.
Polecenia Vima Ściągawka
Kompleksowy ściągawka do poleceń Vima. Wyszukaj ponad 80 podstawowych poleceń Vima z przykładami, opisami i kopią jednym kliknięciem.
Linux/Bash Ściągawka poleceń
Kompleksowa ściągawka dotycząca poleceń Linux i Bash. Wyszukaj ponad 80 podstawowych poleceń za pomocą przykładów, opisów i kopii jednym kliknięciem.
Formater SQL & Upiększacz
Natychmiast formatuj, upiększaj i czyść zapytania SQL w przeglądarce. Nie jest wymagane przesyłanie — całkowicie prywatne i bezpłatne.