2024-02-18 06:41:54 +00:00
|
|
|
<!DOCTYPE html><head><meta charset="utf-8" /><meta name="description" content="C.C.M. personal website" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>📦 DockerVM — C.C.M. Homepage</title><link rel="stylesheet" href="/css/default.css" /></head><body><header><div id="block"><p>+>---------------------------<+</p><p>[<a href="/about.html">About</a>]--[<a href="/research.html">Research</a>]--[<a href="/projects.html">Projects</a>]</p><p>+>---------------------------<+</p><br /></div></header><div id="block"><h1>📦 DockerVM</h1><div>February 18, 2024</div><div><h2>Use docker like Qemu/VmWare/Virtualbox</h2><p><div style="text-align: center"><img src="/images/dockervm.png" /></div></p><h3>[<a href="/download/exherbo.sh">Exherbo</a>]</h3><h3>[<a href="/download/fedora.sh">Fedora</a>]</h3><h3>[<a href="/download/kali.sh">Kali</a>]</h3><h3>[<a href="/download/void.sh">Void</a>]</h3><h3>ACCESS THE SYSTEM IN THE CONTAINER</h3><div id="code"><pre style="overflow: auto"><code> docker run -it IMAGE_ID_HERE /bin/bash</code></pre></div><h3>START ALL STOPPED CONTAINERS</h3><div id="code"><pre style="overflow: auto"><code> docker start $(docker ps -a -q --filter "status=exited")</code></pre></div><h3>RUN THE LAST STOPPED CONTAINER:</h3><div id="code"><pre style="overflow: auto"><code> docker start -a -i 'docker ps -q -l'</code></pre></div><h3>LIST ALL IMAGES</h3><div id="code"><pre style="overflow: auto"><code> docker images</code></pre></div><h3>LIST ALL CONTAINERS</h3><div id="code"><pre style="overflow: auto"><code> docker ps -a</code></pre></div><h3>RE-ACCESS THE SYSTEMS</h3><div id="code"><pre style="overflow: auto"><code> docker exec -it CONTAINER_ID_HERE /bin/bash</code></pre></div><h1>NOVNC</h1><h3>GRAPHICAL INTERFACE</h3><div id="code"><pre style="overflow: auto"><code>apt install xfce-desktop xorg -y</code></pre></div><h3>CONFIGURE A PASSWORD FOR ROOT ON KALI</h3><p>passwd</p><h3>FIREWALL - HOST CONFIG</h3><div id="code"><pre style="overflow: auto"><code>iptables -A INPUT -i docker0 -j ACCEPT</code></pre></div><h3>CONFIG FOR KALI LINUX</h3><div id="code"><pre style="overflow: auto"><code>apt update && apt upgrade && apt install novnc x11vnc tigervnc-standalone-server dbus-x11 python-py python3-pip -y</code></pre></div><h3>NUMPY INSTALL</h3><div id="code"><pre style="overflow: auto"><code>user > pip install numpy
|