β˜•
Doc
  • πŸ‘‹Hi !
  • πŸ“’Documentations
    • πŸ€“Servers
      • πŸ”₯Ξ›rch Linux
      • πŸ’šCheckMk
      • πŸ“ΊZabbix
      • 🎰Google Authenticator
      • πŸš”FiveM
      • 🏎️Assetto Corsa
    • 😈Hacking
      • πŸ‘οΈNMAP
      • πŸ‰Hydra
      • πŸ’‰SQL Injection
      • πŸˆβ€β¬›Hashcat
      • πŸ“ŸShellcode
      • πŸ—ƒοΈLFI / RFI
      • 🐧Linux Password Cracking
      • ‴️Privesc
      • πŸšͺBypassing Antivirus (AV) Detection
      • πŸ’™Discord Tokens
      • πŸ–‡οΈLinks
    • πŸ’»Dev
      • 🌘C/C++
      • πŸ’€Assembly
    • πŸ—ƒοΈCheat Sheet
      • πŸͺƒGIT
      • ❌HTTP Codes and Methods
      • 🐳Docker
      • πŸ“°Regex
      • ⏰Crontab
  • πŸ΄β€β˜ οΈCTF TIPS
    • πŸŒ†Image Steganography
    • 🩻Useful Commands
Powered by GitBook
On this page
  • What's Docker ?
  • Managing Docker
  • Managing Images
  • Managing Containers
  • Docker Containers
  • Managing Containers
  • Container Networking
  • Container Health
  • Docker Images
  • Managing Images
  • Building Images
  • Image Tagging and Publishing
  • Docker Compose
  • Managing Compose
  • Docker Swarm
  1. Documentations
  2. Cheat Sheet

Docker

PreviousHTTP Codes and MethodsNextRegex

Last updated 1 year ago

What's Docker ?

Docker is a versatile and powerful platform that simplifies and streamlines the process of building, packaging, and deploying applications. It is based on containerization technology, which allows developers to package an application and all its dependencies into a single, self-contained unit called a container. These containers are highly portable and can run consistently across different environments, such as development, testing, and production, without any compatibility issues. Docker provides a standardized way to develop, ship, and run applications, making it an essential tool for modern software development. It offers benefits like isolation, scalability, and ease of deployment, making it a key component in the world of containerized applications.

Installation of Docker engine .

Managing Docker

Commands
Description

Check Docker version

Display system-wide information about Docker

Log in to a Docker registry

Log out from a Docker registry

Show Docker disk usage

Remove all unused data (images, containers, etc.)

Pull a Docker image from a registry

Push a Docker image to a registry

Managing Images

Commands
Description

List locally available Docker images

Remove a Docker image

Search for a Docker image on Docker Hub

Build a Docker image from a Dockerfile

Show the history of an image

Remove all dangling images

List Docker images

Managing Containers

Commands
Description

List running containers

List all containers, including stopped ones

Create a new container from an image

Create and start a new container from an image

Create and start a container in detached mode

Stop a running container

Start a stopped container

Restart a container

Remove a container

Execute a command in a running container

View the logs of a container

Display a live stream of container resource usage

Attach to a running container's STDIN, STDOUT, and STDERR

Docker Containers

Managing Containers

Commands
Description

Display the running processes of a container

View detailed information about a container

Rename a container

Update the configuration of a container

Inspect changes to files or directories in a container

Block until a container stops, then print its exit code

Export a container's file system as a tar archive

Copy files/folders between a container and host

Container Networking

Commands
Description

List Docker networks

Create a Docker network

View detailed information about a network

Connect a container to a network

Disconnect a container from a network

Container Health

Commands
Description

Display a live stream of container resource usage

Display resource usage of a specific container

Docker Images

Managing Images

Commands
Description

Save a Docker image to a tar archive file

Load a Docker image from a tar archive file

Remove all dangling images

List Docker images

Show the history of an image

Build a Docker image from a Dockerfile

Building Images

Commands
Description

Create a new image from a container

Build a Docker image from a Dockerfile

Build an image from a Dockerfile from stdin

Image Tagging and Publishing

Commands
Description

Create a tag for an image

Push an image to a registry

View detailed information about an image

Docker Compose

Managing Compose

Commands
Description

Start services defined in a docker-compose.yml

Start services in detached mode

Stop and remove services defined in docker-compose.yml

View container logs for services in a compose file

List containers of services in a compose file

Docker Swarm

Commands
Description

Initialize a Docker Swarm mode

Display the join token for adding nodes to a swarm

List nodes in a swarm

List services in a swarm

Create a new service in a swarm

Deploy a new stack in a swarm

πŸ“’
πŸ—ƒοΈ
🐳
docker --version
docker info
docker login
docker logout
docker system df
docker system prune
docker pull 
docker push 
docker images
docker rmi 
docker search 
docker build -t  
docker history 
docker image prune
docker image ls
docker ps
docker ps -a
docker create 
docker run 
docker run -d 
docker stop 
docker start 
docker restart 
docker rm 
docker exec -it  
docker logs 
docker stats
docker attach 
docker top 
docker inspect 
docker rename  
docker update 
docker diff 
docker wait 
docker export 
docker cp : 
docker network ls
docker network create 
docker network inspect 
docker network connect  
docker network disconnect  
docker container stats
docker container stats 
docker save 
docker load -i <image.tar>
docker image prune
docker image ls
docker image history 
docker image build -t  
docker commit 
docker build -t  
docker build -t  - < Dockerfile
docker tag  
docker push 
docker image inspect 
docker-compose up
docker-compose up -d
docker-compose down
docker-compose logs
docker-compose ps
docker swarm init
docker swarm join-token
docker node ls
docker service ls
docker service create
docker stack deploy
here