🐳
💻 For developers

Docker Basics

Images, containers, Dockerfile, compose — package your apps

What you'll build
📘A solid foundation
Practice in the browser
🎯Mini-projects
🎓Course certificate
📘 29 lessons1-2 evenings🎓 Intermediate
🎯 Mission
Master Docker Basics
+340XP
🏆CertificatePDF
🎓Course complete
Progress0 / 29 · 0%
Next up: What is Docker

Course program

01

Концепции и первый запуск

0 / 5 lessons
  1. 01

    What is Docker

    ContainerImageWhy Docker⚡ +10
    ▶ Now
  2. 02

    Working with containers: ps, stop, rm

    docker ps -astop/rmContainer lifecycle⚡ +10
    Open
  3. 03

    Images from Docker Hub: pull and tags

    docker pullVersion tagCareful with latest⚡ +10
    Open
  4. 04

    Running a container with a name: --name, -d, -it

    --name-d background-it interactive⚡ +10
    🔒 Pro
  5. 05

    Port forwarding: -p

    -p host:containerWhy a portMultiple ports⚡ +10
    🔒 Pro
02

Основы Dockerfile

0 / 5 lessons
  1. 06

    Dockerfile: FROM and WORKDIR

    FROM baseWORKDIR working folderInstruction order⚡ +10
    🔒 Pro
  2. 07

    Dockerfile: COPY and RUN

    COPY filesRUN commandLayers⚡ +10
    🔒 Pro
  3. 08

    Dockerfile: CMD and EXPOSE

    CMD startupEXPOSE portJSON format⚡ +10
    🔒 Pro
  4. 09

    Dockerfile: ENV and ARG

    ENV variableARG build argumentThe difference⚡ +10
    🔒 Pro
  5. 10

    Dockerfile: the difference between ENTRYPOINT and CMD

    ENTRYPOINT fixedCMD replaceableCombination⚡ +10
    🔒 Pro
03

Сборка, теги и слои

0 / 5 lessons
  1. 11

    docker build: building an image

    docker build-t tagBuild context⚡ +10
    🔒 Pro
  2. 12

    Tagging an image and pushing to Docker Hub

    docker tagdocker pushRegistry format⚡ +10
    🔒 Pro
  3. 13

    Docker layers and cache

    What a layer isCache speeds upEfficient ordering⚡ +10
    🔒 Pro
  4. 14

    The .dockerignore file

    What .dockerignore isWhat to excludeSmaller build⚡ +10
    🔒 Pro
  5. 15

    Multi-stage build

    Why multi-stageAS stage nameLightweight result⚡ +10
    🔒 Pro
04

Тома, порты и переменные

0 / 5 lessons
  1. 16

    Volumes: persisting data

    Why a volumeThe -v flagNamed volume⚡ +10
    🔒 Pro
  2. 17

    Environment variables: -e and --env-file

    -e variable--env-file fileSecrets⚡ +10
    🔒 Pro
  3. 18

    A command inside a container: docker exec

    docker exec-it interactiveRunning container⚡ +10
    🔒 Pro
  4. 19

    Container networks: docker network

    docker networkInternal DNSContainer connectivity⚡ +10
    🔒 Pro
  5. 20

    Container status: inspect, logs, stats

    docker inspectdocker logs -fdocker stats⚡ +10
    🔒 Pro
05

Docker Compose

0 / 5 lessons
  1. 21

    What is Docker Compose

    Why Composedocker-compose.ymlOne command⚡ +10
    🔒 Pro
  2. 22

    docker-compose.yml: the services section

    The services sectionimage and portsYAML indentation⚡ +10
    🔒 Pro
  3. 23

    Compose: build, volumes, and environment

    build contextvolumesenvironment variable⚡ +10
    🔒 Pro
  4. 24

    Compose: depends_on and healthcheck

    depends_on orderhealthcheckStartup order⚡ +10
    🔒 Pro
  5. 25

    Compose: persisting data and networks

    volumes sectionnetworks sectionPersisting data⚡ +10
    🔒 Pro
06

Мини-проект

0 / 4 lessons
  1. 26

    Project: Dockerfile for a Node.js API

    Full DockerfileCache optimizationBuilding the image⚡ +10
    🔒 Pro
  2. 27

    Project: a Compose file (Node + PostgreSQL)

    app and db servicesdepends_onNamed volume⚡ +10
    🔒 Pro
  3. 28

    Project: cleanup commands

    system pruneUnused objectsFreeing space⚡ +10
    🔒 Pro
  4. 29

    Project: final workflow commands

    Full workflowBuild, run, clean upCompose finale
    Course complete
    🔒 Pro
Docker Basics — online coding course