Skip to content

NicolaLovo/operating-systems-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Build and push

docker build -t nicolalovo/os:latest .
docker push nicolalovo/os:latest

Pull and run

Pull container

docker pull nicolalovo/os:latest

Run container for the first time

docker run -it nicolalovo/os:latest

Exit from container

exit

Stop container

docker stop <container_id>

Delete container

docker rm <container_id>

Run container after first time

Get 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.

Restart container

docker start -i <container_id>

Create a shell in started container

docker exec -it <container_id> /bin/bash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published