Contents
- Goals
- Pre-requisites
- Building a docker image
- Running a docker container
- Monitoring and debugging containers
- Working with volumes
- Multi-stage builds
- Pushing a container to a registry
Pre-requisites
Checkout the following repository:
$ git clone https://github.com/eciuca/greetings-webservice.git
Go to the project root directory:
$ cd greetings-webservice
Build the project
Linux/MacOS
$ ./build.sh
Note: you might need to run chmod +x *.sh before to make all the .sh files executable
Windows
$ build.bat
Run the webservice
Linux/MacOS
$ ./run.sh
Windows
$ run.bat
Only for Windows users.
Go to Docker for Windows settings > Sharing and check the checkbox in front of the C drive to share it with the Docker host.