Answer the question
In order to leave comments, you need to log in
Does the container become an image?
I am confused in terminology and therefore would like to ask you to point out the errors.
1. Usually at the beginning of the Docker file there is a line like this: FROM ubuntu:latest
. She requests an image from the docker hub. An image is an operating system with possibly installed software type. For example postgres, python etc.
2. The rest of the commands that go into the Dockerfile create layers . That is, each command creates a new layer. For example:
FROM python:3
ADD my_script.py /
RUN pip install pystrich
CMD [ "python", "./my_script.py" ]
docker build -t python-barcode .
docker run python-barcode
Answer the question
In order to leave comments, you need to log in
базовый FROM образ -- образ с доп. слоями = ваш новый образ -- контейнер и изменения -- образ с изменениями
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question