Skip to content

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

Notifications You must be signed in to change notification settings

mr-hrr-harry/dockerised_vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <package_name>

(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 <exited_conatiner_id> <new_image_name>

view the newly created image

docker images | grep "<new_image_name>"

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published