docker build -t nicolalovo/os:latest .
docker push nicolalovo/os:latest
docker pull nicolalovo/os:latest
docker run -it nicolalovo/os:latest
exit
docker stop <container_id>
docker rm <container_id>
docker container ps
Example output:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3f454b9bfbc0 nicolalovo/os:latest "/bin/bash" 4 seconds ago Up 4 seconds xenodochial_elion
In this case, the container id is 3f454b9bfbc0
.
docker start -i <container_id>
docker exec -it <container_id> /bin/bash