Technologies
In this exercise you will write your own Dockerfiles to dockerize 2 applications.
# Preparation
Copy the following files into a local directory on your system. Use the paths specified above the files.
python-app/bmi.py
node-app/server.js
node-app/package.json
# Instructions
Dockerize BOTH apps - the Python and the Node app.
- Create appropriate images for both apps (two separate images!). HINT: Have a brief look at the app code to configure your images correctly!
X
- Launch a container for each created image, making sure, that the app inside the container works correctly and is usable.
X
- Re-create both containers and assign names to both containers. Use these names to stop and restart both containers.
X
- Clean up (remove) all stopped (and running) containers, clean up all created images.
X
- Re-build the images - this time with names and tags assigned to them.
X
- Run new containers based on the re-built images, ensuring that the containers are removed automatically when stopped.
X