Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mr-hrr-harry/dockerised_vm

This is simple project on dockerising a vm and setting up OS as required
https://github.com/mr-hrr-harry/dockerised_vm

ansible ansible-playbook container-venv docker dockerfile ubuntu virtual-machine

Last synced: about 1 month ago
JSON representation

This is simple project on dockerising a vm and setting up OS as required

Awesome Lists containing this project

README

        

# docker commit
used to generate custom containers

# pull new image - base OS
docker run -it --name my_ubuntu_container ubuntu:latest

# install requirements
apt-get update
apt-get install -y

(say)
We need an ubuntu OS with python3, pip3, ansible with other basic requirements, then
apt-get update
apt-get install -y apt-utils
apt install python3 python3-pip ansible systemd systemd-sysv dialog

echo "[boot]" | sudo tee -a /etc/wsl.conf
echo "systemd=true" | sudo tee -a /etc/wsl.conf

# exit the container
exit

# creating and naming the new image
docker commit

# view the newly created image
docker images | grep ""

For more refer:
https://www.notion.so/Harry-s-Docker-Documentation-d252b1bba2ab42e084fcb7b2f970cf2b