Professional Documents
Culture Documents
lab_4
lab_4
Question 2: Which are the layers of this container you have created? Can you make a list of
them?
3. Which are the steps of your Dockerfile?
FROM node:11-alpin
1.
2.
3.
WORKDIR /opt/app
Specify the entry point to start the Python script
The operations needed to copy and execute the Python code are:
WORKDIR /opt/app
5. Which are the instructions to create, run and monitorize the output of
your Docker container?
Create (build) the Docker image:
To stop the execution of your Docker container, you can use the docker stop command
followed by the container ID or name. For example:
docker ps
7. Which are the layers of this container you have created? Can you
make a list of them?
Yes, each instruction in the Dockerfile creates a layer in the Docker image. Here is the list of
layers:
WORKDIR /opt/app