Docker

Installation
Installation
Installation in Windows
Installation on Linux
Basics
Check the version + info
No sudo.
run: Launching the container
ps -a: List of all containers
images
pull: Download the image
Download a specific version of the image
Image repository hub.docker.com
Turning on, off and removing containers
logs
system prune: remove everything
Keep the container active
Stop/remove all containers
Video lessons
Mistakes.
Network
Networks.
ls: List of all networks
connect: Add a container to the network
build
Basics
Clearly state Dockerfile
Reference
Images
images: List of images
pull: Download the image
Download a specific version of the image
Image repository hub.docker.com
save: Keep the image in the archive
load: Download image from archive
tag: Put the right image in.
push: Publication of images
Delete the image
Delete all images
Banner image
run
Basics
-d: detached mode
--namename
-p: Port forwarding
-v: Volume
Internal commands
--rm: Clean up after you.
All available options
exec
nuance
Enter the working container
Dockerfile
Its name.
FROM
LABEL
RUN
COPY
ENTRYPOINT
WORKDIR
EXPOSE
ENV
VOLUME
CMD
Examples
Banner image
Examples of containers
Ubuntu in a container on Windows 10
Container with SSH access
Container with Nginx
Container for Jenkins Agent
A container for PyTest
Container for Swagger/OpenAPI
compose
Installation
Check the version.
The simplest structure of the project
build
up
down
Reassemble only one container.
Articles about Docker
How to work with Docker through Portainer

Article author: Andrei Olegovich