Introduction

What is it ?

spinner
spinner

Videos

Websites

https://average.joe.dev/awesome-docker/arrow-up-right

https://awesome-docker-compose.com/arrow-up-right

https://compose.ajnart.dev/arrow-up-right

https://nuxx.io/arrow-up-right

Installation

Most Linux Distros

https://docs.docker.com/engine/install/arrow-up-right

Arch Based Distros

Log out and log back in so that your group membership is re-evaluated.

Basics

-v src:dest:ro OR --mount type=tmpfs,src=folder1,dst=folder2

Dockerfile is used to build docker images (not containers), here is an example of Dockerfile

Build & Push Image

You need a free dockerhubarrow-up-right account.

Usage

The docker compose command makes the creation of containers easy. You first need to create a compose.yaml file, here is an example :

circle-exclamation

and run:

Examples

  • Run Docker Compose file: docker compose up -d

  • Start all services: docker compose up

  • Stop all services: docker compose down

Last updated