Table of Contents

Workflow

# First time setup:
docker-compose build    # Builds your custom image from Dockerfile
docker-compose up -d    # Starts containers using your custom image

# If you change the Dockerfile later:
docker-compose build    # Rebuild the image
docker-compose up -d    # Recreate containers with new image

# Or do both at once:
docker-compose up -d --build

File Operations

Docker Maintenance

Housekeeping

Watchtower

 services:
  db:
    # label the image as each image gets its own label
    image: mariadb:latest # an example
    labels:
      - "com.centurylinklabs.watchtower.enable=false" # ADD THIS LINE

Basic Operations

Docker Registry

creating a Dockerfile