Skip to content

LgLinus/docker-workshop

Repository files navigation

docker-workshop

Workshop I setup for me and my team

Introduction to Docker

Resources

Presentation link

Docker setup

Docker compose setup

Setup

Folow the instructions in the docker setup and docker compose page.

If you're behind a proxy, make sure to update the ~/.docker/config.json file as following

{
        "proxies": {
                "default": {
                        "httpProxy": "yourproxy",
                        "httpsProxy": "yourproxy"
                }
        }
}

Also, you might have to create a configuration file for the docker service at /etc/systemd/system/docker.service.d/http-proxy.conf

[Service]
Environment="HTTPS_PROXY=yourproxy"
Environment="HTTP_PROXY=yourproxy"

If changes have been made restart the service, ex.

service docker restart

You can check if your installation of Docker works as expected by running the following command below. It will pull and run the hello-world image from Docker hub. If it works you're good to go.

docker run hello-world

Useful commands

List pulled and created images

docker images

Check active containers

docker container ls

Build image.

docker build ./ -t image_name

Run container based on a image file, with the ports exposed

docker run <image_file> -p<hostPort>:<containerPort>

Next

checkout README_1_node.md to proceed

About

Minor workshop, introduction to Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors