Export image to tar archive:
docker export -o myapp.tar myapp:latest
Import image from tar archive:
docker image import myapp.tar myapp:latest
Run image interactively (new container would be removed after exit)
docker run --rm -it --entrypoint /bin/bash myapp:latest
Run Ubuntu 20.04 standard container interactively (auto-removeable container):
docker run --rm -it --entrypoint /bin/bash ubuntu:20.04
Create container from Ubuntu 20.04 satndard image and login into it:
docker run --name mycontainer -d -i -t ubuntu:20.04 /bin/sh
docker exec -it mycontainer /bin/bash