I’m trying to create a container, it shows like it went good, but nothing shows, if i do a docker images there’s no image and either on the docker desktop app
the folder i want to make an image only contains this:
python.py
Dockerfile
and Dockerfile content is:
FROM python:3.9
WORKDIR /app
COPY python.py .
CMD [“python”, “python.py”]
the output if i do docker build -t prueabadocker . is:
sudo docker build -t pruebadocker . 1 ✘
[+] Building 0.5s (8/8) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 114B 0.0s
=> [internal] load metadata for docker.io/library/python:3.9 0.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 30B 0.0s
=> [1/3] FROM docker.io/library/python:3.9@sha256:47d6f16aa0de11f2748c73e7af8d40eaf 0.0s
=> CACHED [2/3] WORKDIR /app 0.0s
=> CACHED [3/3] COPY python.py . 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:06b7cc9c09e3d92296281f835a88b499179e225f5d1423e6211b6af1 0.0s
=> => naming to docker.io/library/pruebadocker
and also i have to do a sudo, otherwise it wont let me do it
no container created