How to: Docker

What is Docker?

Introduction

Docker is a platform that allows you to easily package, deploy, and run applications in a lightweight, portable, and consistent way. It uses a technology called containers to isolate applications and their dependencies (such as libraries and other software they need) from the host system, making it easier to run the application anywhere, on any machine. ლ(ಠ_ಠ ლ)

Capabilities of Docker


Last Updated: 2/19/2025
BY: Lilian

1.0 Installation and Swarm Initialization


Materials / Pre-Setup
  1. Create new Ubuntu Server VM on the Proxmox server (Refer to Create a VM in How to: Proxmox)

**TO BE ADDED

2.0 Adding Users to Docker Group


*Must be done on each docker node if there's more than one

*Any confusion on command syntax/structure can be clarified in Legend

  1. Login to the docker node

  1. Add the user

*Set the password to something easy i.e. password // can also be changed using the 'passwd' command

sudo adduser [USER]
  1. Give user permission to the docker and sudoers group

sudo usermod -aG docker [USER]
sudo usermod -aG sudo [USER]
  1. Connect to user’s account and import user’s Github keys

su [USER]
ssh-import-id-gh [GITHUB USERNAME]
  1. Test whether or not the user can connect to each docker swarm:

ssh [USER]@[IP ADDRESS]
  1. Have user change their password NOT ON ROOT on each docker node created:

passwd 

Last Updated: 2/22/2025
Contributors: Lilian, Vivian