Forrest logo
back to context overview

docker

List of commands for docker:

  • docker:ai:25642 This command starts a new docker container based on the specified .
    $ docker run ${image_name}
    try on your machine
    explain this command
  • docker:ai:461fe use a local image configuration in form of a json for development
    $ docker run -v /path/to/local/image:/app/image -p 3000:3000 image_name:tag
    try on your machine
    explain this command
  • docker:ai:527bf Run a container from the lab-image. Name the instance Demo and be sure to use the -dit options.
    $ docker run -dit --name Demo lab-image
    try on your machine
    explain this command
  • docker:ai:7b588 Pull and run docker hello world container
    $ docker run hello-world
    try on your machine
    explain this command
  • docker:ai:8bf31 Create an image named lab-image from the Dockerfile you just created.
    $ docker build -t lab-image .
    try on your machine
    explain this command
  • docker:ai:9249b Run Shopware with Dockware by running the specified Docker command
    $ docker run -p 80:80 dockware/shopware
    try on your machine
    explain this command
  • docker:ai:d1b85 How to run shopware via docker?
    $ docker run -p 80:80 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -e SHOPWARE_ES_HOSTS=elasticsearch -ti shopware/6-dev
    try on your machine
    explain this command
  • docker:ai:d5147 Stops the distrobox container
    $ docker stop distrobox
    try on your machine
    explain this command
  • docker:ai:e9969 How to show all running docker containers?
    $ docker ps --format '{{json .}}'
    try on your machine
    explain this command
  • docker:commit:help docker: Display help.
    $ docker commit --help
    try on your machine
    explain this command
  • docker:compose:start Runs a set of docker containers like configured in the docker-compose.yml file.
    $ docker-compose up
    try on your machine
    explain this command
  • docker:compose:start:daemonized Runs a set of docker containers (in the background) like configured in the docker-compose.yml file.
    $ docker-compose up -d
    try on your machine
    explain this command
  • docker:container:copy-file Copy a file from a Docker container to the current host
    $ docker cp ${container_id}:${container_filepath} ${local_filepath}
    try on your machine
    explain this command
  • docker:container:ssh Starting a shell/bash inside a docker container (login).
    $ docker exec -it ${docker_name} ${bin}
    try on your machine
    explain this command
  • docker:containers:show:all List all docker containers (running and stopped).
    $ docker ps --all
    try on your machine
    explain this command
  • docker:environment:list-variables List environment variables from a Docker container
    $ docker exec container env
    try on your machine
  • docker:prune:all Remove all stopped docker container, image and volumes
    $ docker system prune --all -f && docker volume prune -f
    try on your machine
  • docker:pull:help docker: Display help.
    $ docker pull --help
    try on your machine
    explain this command
  • docker:remove-stopped Remove all stopped Docker containers
    $ docker container prune
    try on your machine
  • docker:script:run Run a script inside a docker container using a shell script
    $ docker exec ${container_id} ${filepath_in_container}
    try on your machine
  • docker:tldr:00d67 docker: Remove a stopped container.
    $ docker rm ${container_name}
    try on your machine
    explain this command
  • docker:tldr:02695 docker: Start one or more stopped containers.
    $ docker container start ${container1_name} ${container2_name}
    try on your machine
    explain this command
  • docker:tldr:02cc7 docker: Change the columns format to display container's CPU usage percentage.
    $ docker stats --format "${-Name}:\t${-CPUPerc}"
    try on your machine
    explain this command
  • docker:tldr:08cc4 docker: Display statistics for all containers (both running and stopped).
    $ docker stats --all
    try on your machine
    explain this command
  • docker:tldr:0b1a6 docker: Filter containers that share a given image as an ancestor.
    $ docker ps --filter "ancestor=${image}:${tag}"
    try on your machine
    explain this command
  • docker:tldr:0b82c docker: Run command in a new container with published ports.
    $ docker run --publish ${host_port}:${container_port} ${image} ${command}
    try on your machine
    explain this command
  • docker:tldr:0bdca docker: Stop and remove all containers, networks, images, and volumes.
    $ docker compose down --rmi all --volumes
    try on your machine
    explain this command
  • docker:tldr:0d971 docker: Display a live stream for the statistics of all running containers.
    $ docker stats
    try on your machine
    explain this command
  • docker:tldr:0de2b docker: Start DockerSlim on interactive mode.
    $ docker-slim
    try on your machine
    explain this command
  • docker:tldr:169c1 docker: Update restart policy to apply when a specific container exits.
    $ docker update --restart=${select} ${container_name}
    try on your machine
    explain this command
  • docker:tldr:17cc4 docker: List all available and configured networks on docker daemon.
    $ docker network ls
    try on your machine
    explain this command
  • docker:tldr:191b3 docker: Display detailed information of a space-separated list of networks.
    $ docker network inspect ${network_name}
    try on your machine
    explain this command
  • docker:tldr:1adac docker: Show help.
    $ docker start
    try on your machine
    explain this command
  • docker:tldr:1b444 docker: Inspect information about a machine.
    $ docker-machine inspect ${name}
    try on your machine
    explain this command
  • docker:tldr:1bc89 docker: Run command in a new container in background and display its ID.
    $ docker run --detach ${image} ${command}
    try on your machine
    explain this command
  • docker:tldr:22c77 docker: Show help.
    $ docker system
    try on your machine
    explain this command
  • docker:tldr:233d2 docker: Analyze and generate an optimized Docker image.
    $ docker-slim build ${image:tag}
    try on your machine
    explain this command
  • docker:tldr:25cd9 docker: Assign a name and tag to a specific image ID.
    $ docker tag ${id} ${name}:${tag}
    try on your machine
    explain this command
  • docker:tldr:2f3a6 docker: Run command in a one-off container in interactive mode and pseudo-TTY.
    $ docker run --rm --interactive --tty ${image} ${command}
    try on your machine
    explain this command
  • docker:tldr:30858 docker: Download a Docker images for a specific platform, e.g. linux/amd64.
    $ docker pull --platform ${linux-amd64} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:312b8 docker: Update the amount of memory in [M]egabytes a specific container can swap to disk (use `-1` for unlimited).
    $ docker update --memory-swap ${limit}M ${container_name}
    try on your machine
    explain this command
  • docker:tldr:3162c docker: Remove a space-separated list of services.
    $ docker service rm ${select}
    try on your machine
    explain this command
  • docker:tldr:3174d docker: Remove all unused (not referenced by any container) networks.
    $ docker network prune
    try on your machine
    explain this command
  • docker:tldr:33063 docker: Display information about a container, image, or volume using a name or ID.
    $ docker inspect ${select}
    try on your machine
    explain this command
  • docker:tldr:3690a docker: Enter an interactive shell session on an already-running container.
    $ docker exec --interactive --tty ${container_name} ${-bin-bash}
    try on your machine
    explain this command
  • docker:tldr:37d17 docker: Build a docker image using a specific Dockerfile.
    $ docker build --file ${Dockerfile} .
    try on your machine
    explain this command
  • docker:tldr:37ecf docker: Filter containers that contain a substring in their name.
    $ docker ps --filter="name=${name}"
    try on your machine
    explain this command
  • docker:tldr:382db docker: Run command in a new container overwriting the entrypoint of the image.
    $ docker run --entrypoint ${command} ${image}
    try on your machine
    explain this command
  • docker:tldr:39f57 docker: Assign a tag to a specific image.
    $ docker tag ${image}:${current_tag} ${image}:${new_tag}
    try on your machine
    explain this command
  • docker:tldr:3a187 docker: Display information about a volume.
    $ docker volume inspect ${volume_name}
    try on your machine
    explain this command
  • docker:tldr:3d1e7 docker: Filter containers by exit status code.
    $ docker ps --all --filter="exited=${code}"
    try on your machine
    explain this command
  • docker:tldr:41f1e docker: Update the policy to restart up to three times a specific container when it exits with non-zero exit status.
    $ docker update --restart=on-failure:3 ${container_name}
    try on your machine
    explain this command
  • docker:tldr:43655 docker: Create a new secret from `stdin`.
    $ ${command} | docker secret create ${secret_name} -
    try on your machine
    explain this command
  • docker:tldr:467a5 docker: Show the history of a local Docker image.
    $ docker image history ${image}
    try on your machine
    explain this command
  • docker:tldr:4874b docker: Display the path to the container's log file.
    $ docker inspect --format='${-LogPath}' ${container}
    try on your machine
    explain this command
  • docker:tldr:4a0a1 docker: Create a volume.
    $ docker volume create ${volume_name}
    try on your machine
    explain this command
  • docker:tldr:4ba83 docker: Fetch and follow the logs of a container.
    $ docker logs -f ${container_name}
    try on your machine
    explain this command
  • docker:tldr:4d45a docker: Create and start all containers in the background using a `docker-compose.yml` file from the current directory.
    $ docker compose up --detach
    try on your machine
    explain this command
  • docker:tldr:4dc26 docker: Create a new service.
    $ docker service create --name ${service_name} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:4df73 docker: List all running containers.
    $ docker compose ps
    try on your machine
    explain this command
  • docker:tldr:4ee16 docker: Display the current CA certificate in PEM format.
    $ docker swarm ca
    try on your machine
    explain this command
  • docker:tldr:4f97e docker: Display detailed information on one or more containers.
    $ docker container inspect ${container_name}
    try on your machine
    explain this command
  • docker:tldr:50232 docker: Show help.
    $ docker inspect
    try on your machine
    explain this command
  • docker:tldr:54080 docker: List the tasks of a space-separated list of services.
    $ docker service ps ${select}
    try on your machine
    explain this command
  • docker:tldr:553a5 docker: Run command in a new container with passed environment variables.
    $ docker run --env '${variable}=${value}' --env ${variable} ${image} ${command}
    try on your machine
    explain this command
  • docker:tldr:557ad docker: Print logs from a certain point in time of container execution (i.e. 23m, 10s, 2013-01-02T13:23:37).
    $ docker logs ${container_name} --until ${time}
    try on your machine
    explain this command
  • docker:tldr:55a3e docker: Delete unused local Docker images.
    $ docker image prune
    try on your machine
    explain this command
  • docker:tldr:56382 docker: Log into a registry with username and password.
    $ docker login --username ${username} --password ${password} ${server}
    try on your machine
    explain this command
  • docker:tldr:57231 docker: Rotate the current CA certificate and display the new certificate.
    $ docker swarm ca --rotate
    try on your machine
    explain this command
  • docker:tldr:57696 docker: Filter containers by status (created, running, removing, paused, exited and dead).
    $ docker ps --filter="status=${status}"
    try on your machine
    explain this command
  • docker:tldr:5ec1d List all currently running Docker containers.
    $ docker ps
    try on your machine
    explain this command
  • docker:tldr:5f92a docker: Remove an image without deleting untagged parents.
    $ docker rmi --no-prune ${image}
    try on your machine
    explain this command
  • docker:tldr:612fa docker: Create a new docker machine with specific name.
    $ docker-machine create ${name}
    try on your machine
    explain this command
  • docker:tldr:61cde docker: List all volumes.
    $ docker volume ls
    try on your machine
    explain this command
  • docker:tldr:64901 docker: Display detailed information of a space-separated list of services.
    $ docker service inspect ${select}
    try on your machine
    explain this command
  • docker:tldr:677cc docker: Create a new image from a container's changes.
    $ docker container commit ${container_name}
    try on your machine
    explain this command
  • docker:tldr:684f3 docker: Create an image without pausing the container during commit.
    $ docker commit --pause=${false} ${container} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:6871c docker: Log into a registry with password from `stdin`.
    $ echo "${password}" | docker login --username ${username} --password-stdin
    try on your machine
    explain this command
  • docker:tldr:6d918 docker: Create a user-defined network.
    $ docker network create --driver ${driver_name} ${network_name}
    try on your machine
    explain this command
  • docker:tldr:6e96c docker: Download a specific Docker image.
    $ docker pull ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:71ddb docker: Start a container, attaching `stdout` and `stderr` and forwarding signals.
    $ docker start --attach ${container}
    try on your machine
    explain this command
  • docker:tldr:72bb9 docker: Stop one or more running containers.
    $ docker container stop ${container_name}
    try on your machine
    explain this command
  • docker:tldr:73c0d docker: List the output in quiet mode (only numeric IDs).
    $ docker images --quiet
    try on your machine
    explain this command
  • docker:tldr:75727 docker: Remove a worker from the swarm (run inside the worker node).
    $ docker swarm leave
    try on your machine
    explain this command
  • docker:tldr:76c5f docker: Save an image by redirecting `stdout` to a tar archive.
    $ docker save ${image}:${tag} > ${filename-tar}
    try on your machine
    explain this command
  • docker:tldr:7af99 docker: Build a docker image from a Dockerfile at a specified URL.
    $ docker build ${github-com-creack-docker-firefox}
    try on your machine
    explain this command
  • docker:tldr:7b7be docker: Run a command as a specific user.
    $ docker exec --user ${user} ${container_name} ${command}
    try on your machine
    explain this command
  • docker:tldr:7e3ca docker: Run command in a new container from a tagged image.
    $ docker run ${image:tag} ${command}
    try on your machine
    explain this command
  • docker:tldr:7f82d docker: Do not use the cache when building the image.
    $ docker build --no-cache --tag ${name:tag} .
    try on your machine
    explain this command
  • docker:tldr:800e3 docker: Build a docker image using the Dockerfile in the current directory.
    $ docker build .
    try on your machine
    explain this command
  • docker:tldr:8253c docker: Lint a Dockerfile.
    $ docker-slim lint --target ${path-to-Dockerfile}
    try on your machine
    explain this command
  • docker:tldr:82b06 docker: List all Docker images not used by any container.
    $ docker images --filter dangling=true
    try on your machine
    explain this command
  • docker:tldr:82bee docker: Remove unused data.
    $ docker system prune
    try on your machine
    explain this command
  • docker:tldr:82c0f docker: Show detailed information on disk usage.
    $ docker system df --verbose
    try on your machine
    explain this command
  • docker:tldr:83142 docker: Build with custom build-time variables.
    $ docker build --build-arg ${HTTP_PROXY=http:--10-20-30-2:1234} --build-arg ${FTP_PROXY=http:--40-50-60-5:4567} .
    try on your machine
    explain this command
  • docker:tldr:84f50 docker: Remove a space-separated list of unused networks.
    $ docker network rm ${network_name}
    try on your machine
    explain this command
  • docker:tldr:87e2b docker: Select the working directory for a given command to execute into.
    $ docker exec --interactive -tty --workdir ${path-to-directory} ${container_name} ${command}
    try on your machine
    explain this command
  • docker:tldr:89906 docker: Kill one or more running containers.
    $ docker container kill ${container_name}
    try on your machine
    explain this command
  • docker:tldr:8a727 docker: Run command in a new container connecting it to a network.
    $ docker run --network ${network} ${image}
    try on your machine
    explain this command
  • docker:tldr:8ac9b docker: Scale to a specific number of replicas for a space-separated list of services.
    $ docker service scale ${service_name}=${count_of_replicas}
    try on your machine
    explain this command
  • docker:tldr:8c327 docker: Load a Docker image from a specific file.
    $ docker load --input ${path-to-image_file-tar}
    try on your machine
    explain this command
  • docker:tldr:8d86b docker: Initialize a swarm cluster.
    $ docker swarm init
    try on your machine
    explain this command
  • docker:tldr:8db40 docker: Analyze Docker layers from a specific image.
    $ docker-slim xray --target ${image:tag}
    try on your machine
    explain this command
  • docker:tldr:8e873 docker: Display help for a subcommand.
    $ docker-slim ${subcommand} --help
    try on your machine
    explain this command
  • docker:tldr:8f13c docker: Create an image with a specific comment in the metadata.
    $ docker commit --message="${comment}" ${container} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:91514 docker: Disable streaming stats and only pull the current stats.
    $ docker stats --no-stream
    try on your machine
    explain this command
  • docker:tldr:92128 docker: Create a `tmpfs` volume a size of 100 MiB and an uid of 1000.
    $ docker volume create --opt ${type}=${tmpfs} --opt ${device}=${tmpfs} --opt ${o}=${size=100m,uid=1000} ${volume_name}
    try on your machine
    explain this command
  • docker:tldr:923d5 docker: Display real-time events from containers streamed as valid JSON Lines.
    $ docker system events --filter 'type=container' --format '${json -}'
    try on your machine
    explain this command
  • docker:tldr:9277f docker: Display help.
    $ docker tag
    try on your machine
    explain this command
  • docker:tldr:9477c docker: Remove one or more secrets.
    $ docker secret rm ${secret_name1 secret_name2 ---}
    try on your machine
    explain this command
  • docker:tldr:947dc docker: Display the token to join a manager or a worker.
    $ docker swarm join-token ${select}
    try on your machine
    explain this command
  • docker:tldr:95485 docker: Display the list of already downloaded images.
    $ docker images
    try on your machine
    explain this command
  • docker:tldr:962e9 docker: Start a docker container.
    $ docker start ${container}
    try on your machine
    explain this command
  • docker:tldr:97aa6 docker: Display system-wide information.
    $ docker system info
    try on your machine
    explain this command
  • docker:tldr:9c5f9 docker: Show help.
    $ docker rmi
    try on your machine
    explain this command
  • docker:tldr:9d2eb docker: Remove unused data created more than a specified amount of time in the past.
    $ docker system prune --filter="until=${hours}h${minutes}m"
    try on your machine
    explain this command
  • docker:tldr:a08ee docker: Remove all unused local volumes.
    $ docker volume prune
    try on your machine
    explain this command
  • docker:tldr:a0a1f docker: Filter containers that mount a specific volume or have a volume mounted in a specific path.
    $ docker ps --filter="volume=${path-to-directory}" --format "table ${-ID}\t${-Image}\t${-Names}\t${-Mounts}"
    try on your machine
    explain this command
  • docker:tldr:a1753 docker: Create an image from a specific container.
    $ docker commit ${container} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:a5d22 docker: List the services on a docker daemon.
    $ docker service ls
    try on your machine
    explain this command
  • docker:tldr:a6008 docker: Follow logs for all containers.
    $ docker compose logs --follow
    try on your machine
    explain this command
  • docker:tldr:a75ab docker: Pause all processes within one or more containers.
    $ docker container pause ${container_name}
    try on your machine
    explain this command
  • docker:tldr:a95b3 docker: Get the status of a machine.
    $ docker-machine status ${name}
    try on your machine
    explain this command
  • docker:tldr:a99e7 docker: Start a container from an image, with a custom name.
    $ docker run --name ${container_name} ${image}
    try on your machine
    explain this command
  • docker:tldr:aa873 docker: Stop all running containers.
    $ docker compose stop
    try on your machine
    explain this command
  • docker:tldr:ab862 docker: Load a Docker image from `stdin`.
    $ docker load < ${path-to-image_file-tar}
    try on your machine
    explain this command
  • docker:tldr:ae86a docker: List local Docker images.
    $ docker image ls
    try on your machine
    explain this command
  • docker:tldr:af079 docker: Show the latest created container (includes all states).
    $ docker ps --latest
    try on your machine
    explain this command
  • docker:tldr:b0bab docker: List currently running Docker containers.
    $ docker container ls
    try on your machine
    explain this command
  • docker:tldr:b0ccb docker: List images that contain a substring in their name.
    $ docker images "${*name*}"
    try on your machine
    explain this command
  • docker:tldr:b1c61 docker: Connect a container to a network using a name or ID.
    $ docker network connect ${network_name} ${select}
    try on your machine
    explain this command
  • docker:tldr:b8196 docker: Remove a volume.
    $ docker volume rm ${volume_name}
    try on your machine
    explain this command
  • docker:tldr:b94d0 docker: Copy a file or directory from the host to a container, following symlinks (copies the symlinked files directly, not the symlinks themselves).
    $ docker cp --follow-link ${path-to-symlink_on_host} ${container_name}:${filename_or_directory_in_container}
    try on your machine
    explain this command
  • docker:tldr:ba1ef docker: Apply an `ENV` Dockerfile instruction to the created image.
    $ docker commit --change="ENV ${name}=${value}" ${container} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:bae9e docker: Print logs and append them with timestamps.
    $ docker logs -t ${container_name}
    try on your machine
    explain this command
  • docker:tldr:bd475 docker: Create a new secret from a file.
    $ docker secret create ${secret_name} ${filename}
    try on your machine
    explain this command
  • docker:tldr:beda1 docker: Save all tags of the image.
    $ docker save --output ${filename-tar} ${image_name}
    try on your machine
    explain this command
  • docker:tldr:c3597 docker: Download a specific Docker image in quiet mode.
    $ docker pull --quiet ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:c3fc4 docker: Update the maximum number of process IDs allowed inside a specific container (use `-1` for unlimited).
    $ docker update --pids-limit ${count} ${container_name}
    try on your machine
    explain this command
  • docker:tldr:c558a docker: Disconnect a container from a network.
    $ docker network disconnect ${network_name} ${select}
    try on your machine
    explain this command
  • docker:tldr:c55e1 docker: Follow logs for a specific container.
    $ docker compose logs --follow ${container_name}
    try on your machine
    explain this command
  • docker:tldr:c63ee docker: Run a command in the background (detached) on a running container.
    $ docker exec --detach ${container_name} ${command}
    try on your machine
    explain this command
  • docker:tldr:c7eb5 docker: List all Docker images including intermediates.
    $ docker images --all
    try on your machine
    explain this command
  • docker:tldr:c84ca docker: Pull an image from a docker registry.
    $ docker pull ${image}
    try on your machine
    explain this command
  • docker:tldr:d1df9 docker: Log into a registry with a specific username (user will be prompted for a password).
    $ docker login --username ${username}
    try on your machine
    explain this command
  • docker:tldr:d305c docker: Remove one or more images given their names.
    $ docker rmi ${image1 image2 ---}
    try on your machine
    explain this command
  • docker:tldr:d3391 docker: Show docker disk usage.
    $ docker system df
    try on your machine
    explain this command
  • docker:tldr:d5837 docker: Start all containers, rebuild if necessary.
    $ docker compose up --build
    try on your machine
    explain this command
  • docker:tldr:d5f10 docker: Display a container's IP address.
    $ docker inspect --format='${range -NetworkSettings-Networks}${-IPAddress}${end}' ${container}
    try on your machine
    explain this command
  • docker:tldr:d75c3 docker: Change the valid period for node certificates.
    $ docker swarm update --cert-expiry ${hours}h${minutes}m${seconds}s
    try on your machine
    explain this command
  • docker:tldr:d7984 docker: Print logs from a container.
    $ docker logs ${container_name}
    try on your machine
    explain this command
  • docker:tldr:dac3c docker: Interactively log into a registry.
    $ docker login
    try on your machine
    explain this command
  • docker:tldr:dac9a docker: Run a command in background on existing container but keep `stdin` open.
    $ docker exec --interactive --detach ${container_name} ${command}
    try on your machine
    explain this command
  • docker:tldr:dad39 docker: Display real-time events from the Docker daemon.
    $ docker system events
    try on your machine
    explain this command
  • docker:tldr:db2f5 docker: Create an image with a specific author in the metadata.
    $ docker commit --author="${author}" ${container} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:dbd3d docker: Update the number of CPUs available to a specific container.
    $ docker update --cpus ${count} ${container_name}
    try on your machine
    explain this command
  • docker:tldr:dc642 docker: Load a Docker image from a specific file in quiet mode.
    $ docker load --quiet --input ${path-to-image_file-tar}
    try on your machine
    explain this command
  • docker:tldr:dcddc docker: Stop a machine.
    $ docker-machine stop ${name}
    try on your machine
    explain this command
  • docker:tldr:dd6d3 docker: Create a volume with a specific label.
    $ docker volume create --label ${label} ${volume_name}
    try on your machine
    explain this command
  • docker:tldr:ddf96 docker: Display help for a subcommand.
    $ docker volume ${subcommand} --help
    try on your machine
    explain this command
  • docker:tldr:dfb12 docker: List all secrets.
    $ docker secret ls
    try on your machine
    explain this command
  • docker:tldr:e06af docker: Start all containers using an alternate compose file.
    $ docker compose --file ${filename} up
    try on your machine
    explain this command
  • docker:tldr:e0abb docker: Update the memory limit in [M]egabytes for a specific container.
    $ docker update --memory ${limit}M ${container_name}
    try on your machine
    explain this command
  • docker:tldr:e22a9 docker: Save an image to a tar archive.
    $ docker save --output ${filename-tar} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:e4b9b docker: Force remove an image.
    $ docker rmi --force ${image}
    try on your machine
    explain this command
  • docker:tldr:e4e78 docker: Build a docker image and tag it.
    $ docker build --tag ${name:tag} .
    try on your machine
    explain this command
  • docker:tldr:e6e79 docker: Join a new node to the cluster.
    $ docker swarm join --token ${token} ${manager_node_url:2377}
    try on your machine
    explain this command
  • docker:tldr:e7c2e docker: Export a container's filesystem as a tar archive.
    $ docker container export ${container_name}
    try on your machine
    explain this command
  • docker:tldr:e7de7 docker: List currently running docker machines.
    $ docker-machine ls
    try on your machine
    explain this command
  • docker:tldr:e9fe3 docker: Apply a `CMD` Dockerfile instruction to the created image.
    $ docker commit --change="CMD ${command}" ${container} ${image}:${tag}
    try on your machine
    explain this command
  • docker:tldr:ea924 docker: Download all tags of a specific Docker image.
    $ docker pull --all-tags ${image}
    try on your machine
    explain this command
  • docker:tldr:ee06f docker: Start or stop an existing container.
    $ docker ${select} ${container_name}
    try on your machine
    explain this command
  • docker:tldr:f058f docker: Print last 5 lines.
    $ docker logs ${container_name} --tail ${5}
    try on your machine
    explain this command
  • docker:tldr:f0680 docker: Run command in a new container with bind mounted volumes.
    $ docker run --volume ${-path-to-host_path}:${-path-to-container_path} ${image} ${command}
    try on your machine
    explain this command
  • docker:tldr:f23be docker: Display all port bindings.
    $ docker inspect --format='${range $p, $conf := -NetworkSettings-Ports} ${$p} -> ${(index $conf 0)-HostPort} ${end}' ${container}
    try on your machine
    explain this command
  • docker:tldr:f29a7 docker: Set an environment variable in a running Bash session.
    $ docker exec --interactive --tty --env ${variable_name}=${value} ${container_name} ${-bin-bash}
    try on your machine
    explain this command
  • docker:tldr:f3304 docker: Delete all unused images (not just those without a tag).
    $ docker image prune --all
    try on your machine
    explain this command
  • docker:tldr:f6a23 docker: Start a machine.
    $ docker-machine start ${name}
    try on your machine
    explain this command
  • docker:tldr:f6a40 docker: Display detailed information on one or multiple secrets in a human friendly format.
    $ docker secret inspect --pretty ${secret_name1 secret_name2 ---}
    try on your machine
    explain this command
  • docker:tldr:fa371 docker: Display a live stream of statistics for a space-separated list of containers.
    $ docker stats ${container_name}
    try on your machine
    explain this command
  • docker:warp:1c5259d0e7be3161b8df9b1a488caf4d Rename a Docker volume
    $ docker volume create --name ${new_volume} && docker run --rm -it -v ${old_volume}:/from -v ${new_volume}:/to alpine ash -c 'cd /from ; cp -av . /to' && docker volume rm ${old_volume}
    try on your machine
    explain this command
  • docker:warp:232251e1ae9c18f1e96376e73c49db14 Copy files from a host to a docker container
    $ docker cp ${local_file_path} ${container_id}:/${container_filepath}
    try on your machine
    explain this command
back to context overview