Your build command has a space typo: - t
instead of -t
. This causes the image to be untagged, so docker run
can’t find imageubuntu1
.
Rebuild with the right syntax:
docker build -t imageubuntu1 .
Run your container:
docker run -d container1 imageubuntu1