docker build -t <image_name> .
docker run -it <image_name>
docker run -it -p <host_port>:<container_port> <image_name>
docker run -it -v <host_dir>:<container_dir> <image_name>
docker run -it -p <host_port>:<container_port> -v <host_dir>:<container_dir> <image_name>
docker run -it --name <container_name> <image_name>
docker run -it --name <container_name> -p <host_port>:<container_port> <image_name>
docker run -it --name <container_name> -v <host_dir>:<container_dir> <image_name>
docker run -it --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> <image_name>
docker run -it --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> -e <env_var_name>=<env_var_value> <image_name>
docker run -it --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> -e <env_var_name>=<env_var_value> -d <image_name>
Run docker image with name, volume mapping, port mapping, environment variables, detach mode and restart policy
docker run -it --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> -e <env_var_name>=<env_var_value> -d --restart=always <image_name>
Run docker image with name, volume mapping, port mapping, environment variables, detach mode, restart policy and network
docker run -it --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> -e <env_var_name>=<env_var_value> -d --restart=always --network=<network_name> <image_name>
Run docker image with name, volume mapping, port mapping, environment variables, detach mode, restart policy, network and link
docker run -it --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> -e <env_var_name>=<env_var_value> -d --restart=always --network=<network_name> --link <container_name>:<alias> <image_name>
Run docker image with name, volume mapping, port mapping, environment variables, detach mode, restart policy, network, link and hostname
docker run -it --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> -e <env_var_name>=<env_var_value> -d --restart=always --network=<network_name> --link <container_name>:<alias> --hostname <hostname> <image_name>
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker volume rm $(docker volume ls -q)
docker network rm $(docker network ls -q)
docker rm $(docker ps -a -q) && docker rmi $(docker images -q) && docker volume rm $(docker volume ls -q) && docker network rm $(docker network ls -q)
docker rm <container_name>
docker rmi <image_name>
docker volume rm <volume_name>
docker network rm <network_name>
docker rm <container_name> && docker rmi <image_name> && docker volume rm <volume_name> && docker network rm <network_name>
docker stop $(docker ps -a -q)
docker stop <container_name>
docker start $(docker ps -a -q)
docker start <container_name>
docker restart $(docker ps -a -q)
docker restart <container_name>
docker volume create <volume_name>
docker network create <network_name>
docker create --name <container_name> -p <host_port>:<container_port> <image_name>
docker create --name <container_name> -p <host_port>:<container_port> -e <env_var_name>=<env_var_value> <image_name>
docker create --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> -e <env_var_name>=<env_var_value> <image_name>
Create docker container with name, volume mapping, port mapping, environment variables and restart policy
docker create --name <container_name> -p <host_port>:<container_port> -v <host_dir>:<container_dir> -e <env_var_name>=<env_var_value> --restart=always <image_name>
Create docker container with name, volume mapping, port mapping, environment variables, restart policy and network
docker create --name <container_name
docker ps -a
docker images
docker volume ls
docker network ls
docker ps -a && docker images && docker volume ls && docker network ls
docker ps -a --format "table {{.ID}}\t{{.Names}}"
docker images --format "table {{.ID}}\t{{.Repository}}"
docker volume ls --format "table {{.Driver}}\t{{.Name}}"
docker network ls --format "table {{.Driver}}\t{{.Name}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}" && docker images --format "table {{.ID}}\t{{.Repository}}" && docker volume ls --format "table {{.Driver}}\t{{.Name}}" && docker network ls --format "table {{.Driver}}\t{{.Name}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy and network
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy, network and image
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}\t{{.Image}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}"
docker images --format "table {{.ID}}\t{{.Repository}}"
docker volume ls --format "table {{.Driver}}\t{{.Name}}"
docker network ls --format "table {{.Driver}}\t{{.Name}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}" && docker images --format "table {{.ID}}\t{{.Repository}}" && docker volume ls --format "table {{.Driver}}\t{{.Name}}" && docker network ls --format "table {{.Driver}}\t{{.Name}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}"
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy and network
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy, network and image
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}\t{{.Image}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy, network, image and environment variables
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}\t{{.Image}}\t{{.Env}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy, network, image, environment variables and command
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}\t{{.Image}}\t{{.Env}}\t{{.Command}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy, network, image, environment variables, command and labels
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}\t{{.Image}}\t{{.Env}}\t{{.Command}}\t{{.Labels}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy, network, image, environment variables, command, labels and state
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}\t{{.Image}}\t{{.Env}}\t{{.Command}}\t{{.Labels}}\t{{.State}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy, network, image, environment variables, command, labels, state and health
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}\t{{.Image}}\t{{.Env}}\t{{.Command}}\t{{.Labels}}\t{{.State}}\t{{.Health}}"
List all docker containers with name, port mapping, volume mapping, status, restart policy, network, image, environment variables, command, labels, state, health and host config
docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Mounts}}\t{{.Status}}\t{{.RestartPolicy}}\t{{.Networks}}\t{{.Image}}\t{{.Env}}\t{{.Command}}\t{{.Labels}}\t{{.State}}\t{{.Health}}\t{{.HostConfig}}"