$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install -weight: 500;">apt-transport-https ca-certificates -weight: 500;">curl -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install -weight: 500;">apt-transport-https ca-certificates -weight: 500;">curl -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install -weight: 500;">apt-transport-https ca-certificates -weight: 500;">curl -y
$ -weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
$ -weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
$ -weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc] https://download.-weight: 500;">docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | -weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list > /dev/null
$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc] https://download.-weight: 500;">docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | -weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list > /dev/null
$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc] https://download.-weight: 500;">docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | -weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list > /dev/null
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin -y
$ -weight: 500;">docker --version
$ -weight: 500;">docker --version
$ -weight: 500;">docker --version
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop -weight: 500;">docker
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart -weight: 500;">docker
$ -weight: 600;">sudo usermod -aG -weight: 500;">docker $USER
$ newgrp -weight: 500;">docker
$ -weight: 600;">sudo usermod -aG -weight: 500;">docker $USER
$ newgrp -weight: 500;">docker
$ -weight: 600;">sudo usermod -aG -weight: 500;">docker $USER
$ newgrp -weight: 500;">docker
$ -weight: 500;">docker ps
$ -weight: 500;">docker ps
$ -weight: 500;">docker ps
$ -weight: 500;">docker pull nginx:latest
$ -weight: 500;">docker pull nginx:latest
$ -weight: 500;">docker pull nginx:latest
$ -weight: 500;">docker run --name example-nginx -d -p 80:80 nginx:latest
$ -weight: 500;">docker run --name example-nginx -d -p 80:80 nginx:latest
$ -weight: 500;">docker run --name example-nginx -d -p 80:80 nginx:latest
$ -weight: 500;">docker ps
$ -weight: 500;">docker ps
$ -weight: 500;">docker ps
$ -weight: 600;">sudo ufw allow 80/tcp
$ -weight: 600;">sudo ufw allow 80/tcp
$ -weight: 600;">sudo ufw allow 80/tcp - -weight: 500;">docker-ce: Docker Engine (community edition)
- -weight: 500;">docker-ce-cli: CLI client
- containerd.io: container runtime
- -weight: 500;">docker-buildx-plugin: multi-platform image builds
- -weight: 500;">docker-compose-plugin: multi-container orchestration via YAML - --name example-nginx: human-readable container name
- -d: run detached (background)
- -p 80:80: map host port 80 to container port 80 - Build custom images with a Dockerfile
- Orchestrate multi-container apps with -weight: 500;">docker compose
- Push images to Docker Hub or a private registry