Ilmainen muunnin
Dockerin komennot Huijauslehti
Kattava Docker-komentohuijauslehti. Hae yli 70 tärkeästä Docker-komennosta esimerkeillä, kuvauksilla ja yhdellä napsautuksella.
docker run
Create and start a new container from an image
Esimerkki:
docker run -d -p 80:80 --name web nginxdocker run -it
Run a container interactively with a terminal
Esimerkki:
docker run -it ubuntu bashdocker run --rm
Run a container and remove it automatically when it exits
Esimerkki:
docker run --rm alpine echo 'hello'docker run -e
Set environment variables in a container
Esimerkki:
docker run -e NODE_ENV=production node:18docker run -v
Mount a volume or bind mount into a container
Esimerkki:
docker run -v /host/path:/container/path nginxdocker start
Start one or more stopped containers
Esimerkki:
docker start my-containerdocker stop
Stop one or more running containers gracefully
Esimerkki:
docker stop my-containerdocker restart
Restart one or more containers
Esimerkki:
docker restart my-containerdocker rm
Remove one or more stopped containers
Esimerkki:
docker rm my-containerdocker rm -f
Force-remove a running container
Esimerkki:
docker rm -f my-containerdocker ps
List running containers
Esimerkki:
docker psdocker ps -a
List all containers including stopped ones
Esimerkki:
docker ps -adocker exec
Run a command in a running container
Esimerkki:
docker exec -it my-container bashdocker logs
Fetch logs from a container
Esimerkki:
docker logs -f --tail 100 my-containerdocker inspect
Return low-level information about a container or image
Esimerkki:
docker inspect my-containerdocker stats
Display live resource usage statistics for containers
Esimerkki:
docker stats my-containerdocker top
Display running processes inside a container
Esimerkki:
docker top my-containerdocker pause
Pause all processes within a container
Esimerkki:
docker pause my-containerdocker unpause
Unpause all processes within a paused container
Esimerkki:
docker unpause my-containerdocker rename
Rename an existing container
Esimerkki:
docker rename old-name new-namedocker kill
Kill a running container by sending a signal
Esimerkki:
docker kill --signal=SIGTERM my-containerdocker cp
Copy files between a container and the host filesystem
Esimerkki:
docker cp my-container:/app/config.json ./config.jsondocker attach
Attach local I/O streams to a running container
Esimerkki:
docker attach my-containerdocker pull
Download an image from a registry
Esimerkki:
docker pull nginx:latestdocker push
Upload an image to a registry
Esimerkki:
docker push myuser/myimage:v1.0docker build
Build an image from a Dockerfile
Esimerkki:
docker build -t myapp:latest .docker build --no-cache
Build an image without using the layer cache
Esimerkki:
docker build --no-cache -t myapp:latest .docker images
List all locally available images
Esimerkki:
docker imagesdocker rmi
Remove one or more images
Esimerkki:
docker rmi nginx:old myimage:v1docker tag
Create a tag referencing a source image
Esimerkki:
docker tag myapp:latest myuser/myapp:v2.0docker history
Show the history of an image's layers
Esimerkki:
docker history nginx:latestdocker save
Save an image to a tar archive
Esimerkki:
docker save -o myimage.tar myapp:latestdocker load
Load an image from a tar archive
Esimerkki:
docker load -i myimage.tardocker import
Import a tarball to create a filesystem image
Esimerkki:
docker import mycontainer.tar myimage:importeddocker export
Export a container's filesystem as a tar archive
Esimerkki:
docker export my-container > mycontainer.tardocker commit
Create a new image from a container's changes
Esimerkki:
docker commit my-container myimage:snapshotdocker image prune
Remove unused (dangling) images
Esimerkki:
docker image prune -adocker network create
Create a new network
Esimerkki:
docker network create --driver bridge my-networkdocker network ls
List all networks
Esimerkki:
docker network lsdocker network rm
Remove one or more networks
Esimerkki:
docker network rm my-networkdocker network inspect
Show detailed information about a network
Esimerkki:
docker network inspect my-networkdocker network connect
Connect a running container to a network
Esimerkki:
docker network connect my-network my-containerdocker network disconnect
Disconnect a container from a network
Esimerkki:
docker network disconnect my-network my-containerdocker network prune
Remove all unused networks
Esimerkki:
docker network prunedocker volume create
Create a named volume
Esimerkki:
docker volume create my-volumedocker volume ls
List all volumes
Esimerkki:
docker volume lsdocker volume rm
Remove one or more volumes
Esimerkki:
docker volume rm my-volumedocker volume inspect
Display detailed information about a volume
Esimerkki:
docker volume inspect my-volumedocker volume prune
Remove all unused local volumes
Esimerkki:
docker volume prunedocker compose up
Create and start all services defined in compose file
Esimerkki:
docker compose up -ddocker compose down
Stop and remove containers, networks from compose
Esimerkki:
docker compose down --volumesdocker compose ps
List containers for a compose project
Esimerkki:
docker compose psdocker compose logs
View output from compose service containers
Esimerkki:
docker compose logs -f webdocker compose build
Build or rebuild services defined in compose file
Esimerkki:
docker compose build --no-cache webdocker compose pull
Pull service images defined in the compose file
Esimerkki:
docker compose pulldocker compose restart
Restart service containers
Esimerkki:
docker compose restart webdocker compose exec
Execute a command in a running service container
Esimerkki:
docker compose exec web bashdocker compose run
Run a one-off command on a service
Esimerkki:
docker compose run --rm web npm testdocker compose stop
Stop running containers without removing them
Esimerkki:
docker compose stop webdocker compose config
Validate and view the merged compose configuration
Esimerkki:
docker compose configdocker info
Display system-wide Docker information
Esimerkki:
docker infodocker version
Show the Docker client and daemon version
Esimerkki:
docker versiondocker system df
Show disk usage by Docker objects
Esimerkki:
docker system df -vdocker system prune
Remove all unused Docker resources at once
Esimerkki:
docker system prune -a --volumesdocker events
Stream real-time events from the Docker daemon
Esimerkki:
docker events --filter type=containerdocker login
Log in to a Docker registry
Esimerkki:
docker login registry.example.comdocker logout
Log out from a Docker registry
Esimerkki:
docker logout registry.example.comdocker search
Search Docker Hub for images
Esimerkki:
docker search --filter stars=100 nginxdocker context ls
List available Docker contexts
Esimerkki:
docker context lsdocker context use
Switch the active Docker context
Esimerkki:
docker context use my-remote-hostLiittyvät työkalut
Näytä kaikki työkalutGit Commands Huijauslehti
Kattava Git-komentohuijauslehti. Hae yli 80 tärkeästä Git-komennosta esimerkeillä, kuvauksilla ja yhdellä napsautuksella.
Vim komennot Huijauslehti
Kattava Vim-komentohuijauslehti. Hae yli 80 tärkeästä Vim-komennosta esimerkeillä, kuvauksilla ja yhdellä napsautuksella.
Linux / Bash Command Cheat Sheet
Kattava Linux- ja Bash-komentohuijauslehti. Hae yli 80 tärkeästä komennosta esimerkeillä, kuvauksilla ja yhdellä napsautuksella.
SQL-muotoilija & Kaunistaja
Muotoile, kaunista ja puhdista SQL-kyselyt välittömästi selaimessasi. Latausta ei vaadita – täysin yksityinen ja ilmainen.