Hi, I created my own base image writing this Dockerfile:
FROM scratch
COPY hello /
CMD ["/hello"]
When I build my own base image apparently everything works fine:
root# docker build -t test1:latest .
Sending build context to Docker daemon 3.072 kB
Step 0 : FROM scratch
--->
Step 1 : COPY hello /
---> c5629d3f9ade
Removing intermediate container 5cbe3e8d3aa3
Step 2 : CMD /hello
---> Running in 88c3a9dda597
---> c88c6bb91cc0
Removing intermediate container 88c3a9dda597
Successfully built c88c6bb91cc0
root# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
test1 latest c88c6bb91cc0 44 seconds ago 14 B
But when I run a container from this image appears following error:
root# docker run -d test1
Unable to find image 'test1:latest' locally
Trying to pull repository registry.access.redhat.com/test1 ...
What am I doing wrong?
Thanks!