Codium Docker training

Requirements

You need Docker and Docker Compose. For that, you have several options:

  1. Install Docker in your local machine (recommended)

  2. Use an online Docker playground

    • Navigate to https://labs.play-with-docker.com/
    • You need to Login with a Docker Hub account. If you don't have one, you can create it easily from here
    • Click on "Start"
    • Click on "Add new instance" (the instance will be alive for 4 hours)
    • There you can write any Docker or Docker Compose command as you would do it from you local machine.
    • We would recommend you to upload this repository to you playground instance:
      • From the playground instance terminal: wget https://github.com/CodiumTeam/docker-training/archive/refs/heads/master.zip && unzip master.zip
      • The previous command creates a folder named docker-training-master that contains all the resources of this repository.
    • In case you need it, you can upload any file or folder from your local machine to your playground instance:
      • To copy a file: scp [your-filename] [your-instance-id]@direct.labs.play-with-docker.com:/root
      • To copy a folder recursively: scp -r [your-folder] [your-instance-id]@direct.labs.play-with-docker.com:/root

Speed up exercises

To avoid delays while doing the exercises you can prefetch all docker images running pull-images.sh script.

If you want to pull only the images related with a specific exercise, open the script and copy and paste the required images.

Exercises

Interesting resources

General

Docker Compose

Tools for troubleshooting and monitoring

Best practices

Other interesting learning resources