Basic

Details

  1. What is Dockers?
  2. Docker basics
    1. image vs container
    2. using Dockerfiles and pre-build images
    3. docker compose (running existing configurations)
    4. exposing ports
    5. listing running containers
    6. killing containers
    7. inspecting container logs
  3. Docker Compose basic
    1. up/down/start/stop docker compose stack
  1. https://docs.docker.com/get-started/overview/
  2. https://docs.docker.com/language/nodejs/run-containers/
  3. https://docker-curriculum.com/
  4. https://www.educative.io/blog/docker-compose-tutorial

Intermediate

Details

  1. Writing and using docker-compose configs
  2. Running commands in existing container (docker exec)
  3. Docker file system
  4. Docker networking
  5. Docker best practices
  6. Docker vs VM
  1. https://stackify.com/docker-build-a-beginners-guide-to-building-docker-images/
  2. https://docs.docker.com/network/
  3. https://docs.docker.com/storage/storagedriver/
  4. https://docs.docker.com/develop/dev-best-practices/
  5. https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

Courses

  1. https://www.pluralsight.com/courses/docker-deep-dive-update

Notes

Get IP of docker

docker inspect "docker-name" to get ipAddr of docker
docker stop 1a3a661b7149
docker rm
docker pull canhhnac/text2speech
docker run  -p 4000:3000 -d canhhnac/text2speech

Give permission for volumes

mkdir -p ./volumes/app/mattermost/{config,data,logs,plugins,client/plugins,bleve-indexes}
sudo chown -R 2000:2000 ./volumes/app/mattermost

Install Docker

curl -fsSL https://test.docker.com -o test-docker.sh
sudo sh test-docker.sh

run docker-compose

docker compose -f "test\docker-compose.yml" up -d --build