
π« Dockerize That Session
1. Install Docker
sudo apt-get update
sudo apt install -y docker docker-compose docker.io 
sudo usermod -aG docker $USER
2. Setup Docker Directory Structure I 
cd ~
mkdir docker-that-session
cd docker-that-session 
mkdir session-base 
cd session-base 
touch Dockerfile # docker-that-session/session-base/Dockerfile 
# nano Dockerfile
# copy past the following text into session-base/Dockerfile, 
# then hit Ctrl O to write and Ctrl X to exit. 
FROM electronuserland/builder
WORKDIR /
RUN apt-get update 
RUN apt-get install -y apt-utils libfuse2 fuse libatk1.0-0 libatk-bridge2.0-0 libgtk-3.0 libasound2 
RUN /sbin/ldconfig -v 
3. Build Docker Session Base
# confirm Dockerfile contents are as above
cat Dockerfile
# build the session base and remember you the dot . !
sudo docker build -t docker-that-session-base . 
# BASE INSTALLATION FINISH
cd ..
4. Download Session Desktop from getsession .org Website: session-desktop.AppImage 
torsocks wget --continue "https://github.com/oxen-io/session-desktop/releases/download/v1.12.3/session-desktop-linux-x86_64-1.12.3.AppImage" -O docker-that-session.AppImage
#mv *.AppImage docker-that-session.AppImage 
5. Setup Docker Directory Structure II 
touch Dockerfile # docker-that-session/Dockerfile
# nano Dockerfile 
# copy past the following text into docker-that-session/Dockerfile, 
# then hit Ctrl O to write and Ctrl X to exit.
FROM docker-that-session-base:latest
WORKDIR / 
COPY docker-that-session.AppImage . 
RUN chmod +x docker-that-session.AppImage
ENTRYPOINT ["./docker-that-session.AppImage", "--no-sandbox"]
6. Build Docker Session 
# confirm Dockerfile contents are as above
cat Dockerfile
# build the docker-session this time the dot . is already remember of course.
sudo docker build -t docker-that-session . 
# INSTALLATION FINISH
7. Example Directory Structure
tree .
.
βββ Dockerfile
βββ docker-that-session.AppImage
βββ Readme
βββ session-base
    βββ Dockerfile
1 directory, 4 files
8. Run Docker Multi Session
# From now on you run as many instances as you just want. 
# No need to repeat steps above. 
# START docker-that-session like this: 
# Look precisely the docker volume name! 
sudo docker run  --net=host --device /dev/fuse --privileged --env="DISPLAY" --volume=vol-docker-that-session-friends-and-family:/root  docker-that-session
sudo docker run  --net=host --device /dev/fuse --privileged --env="DISPLAY" --volume=vol-docker-that-session-darknet-side-business:/root  docker-that-session
sudo docker run  --net=host --device /dev/fuse --privileged --env="DISPLAY" --volume=vol-docker-that-session-side-women:/root  docker-that-session
# 9. BACKUP: volumes under /var/lib/docker/volumes ! BACK IT UP HARRY !
# You can use the sudo copy to usb stick. 
# ALL FINISH. Time for some snack. 



