2024-10-20 20:14:54 +00:00
|
|
|
# DOCKERVM
|
|
|
|
Just some docker commands to use docker like VmWare/Virtualbox
|
2024-10-20 20:14:32 +00:00
|
|
|
|
2024-10-20 20:14:54 +00:00
|
|
|
![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
|