Workshop I setup for me and my team
Introduction to Docker
Resources
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-worldList pulled and created images
docker imagesCheck active containers
docker container lsBuild image.
docker build ./ -t image_nameRun container based on a image file, with the ports exposed
docker run <image_file> -p<hostPort>:<containerPort>checkout README_1_node.md to proceed