aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: cab1d35d29eacf777b0d71b50f2c1955a7063814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# DOCKERVM
Just some docker commands to use docker like VmWare/Virtualbox

![image](https://github.com/cristiancmoises/dockervm/assets/86272521/ab87b45c-4139-4f58-b0da-04811fba3a46)

# ACCESS THE SYSTEM IN THE CONTAINER
       docker run -it IMAGE_ID_HERE /bin/bash
# START ALL STOPPED CONTAINERS
       docker start $(docker ps -a -q --filter "status=exited")
# RUN THE LAST STOPPED CONTAINER:
       docker start -a -i 'docker ps -q -l'
# LIST ALL IMAGES
       docker images
# LIST ALL CONTAINERS
       docker ps -a
# RE-ACCESS THE SYSTEMS
       docker exec -it CONTAINER_ID_HERE /bin/bash