Docker ‐ Installation and setup - mluchettii/internship-portfolio GitHub Wiki

Table of Contents

VM host installation

I will be setting up my Docker environment in the Ubuntu VM. Here, I manually assigned an IP address for the VM in accordance with the VBox NAT Network subnet configuration

Make sure to select the Docker snap

Through an SSH terminal, I created a new Docker volume on the Ubuntu VM for storing Portainer (container manager) data

Installing a containerized application (Portainer)

After that, I pulled the Portainer image from the Docker repository, installed onto the portainer_data volume that is mounted on the container's /data directory, as well as forwarding ports 8000 and 9443 to it for web UI access.

Using the docker ps command to check the currently running containers

Accessing Portainer web UI via the VBox Host-only interface IP address and port 9443 (HTTPS) to create an admin login account.

Portainer dashboard

"local" environment

Containers in the "local" environment

Installing Nessus container

Preparing Docker volume for Nessus: sudo docker volume create nessus_data

sudo docker run -d -p 8834:8834 --name nessus --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v nessus_data:/data tenable/nessus:latest-ubuntu
Pulled the Nessus image from the Docker repository and installed it to the nessus_data volume. Docker then runs the container in the background.

Nessus container running fine

Accessing Nessus from web UI