User Tools

Site Tools


Sidebar

docker

This is an old revision of the document!


Table of Contents

Setup

Installing Docker on Debian 11

sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
docker –version
sudo systemctl status docker

Test

docker run hello-world

Mailpile

https://hub.docker.com/r/rroemhild/mailpile/

docker run -d --name mailpile -p 33411:33411 rroemhild/mailpile

Bind volume /root/.local/share/Mailpile and /root/.gnupg for persistent storage:

docker run -d --name mailpile -p 33411:33411 -v /some/local/path:/root/.local/share/Mailpile -v /another/local/path:/root/.gnupg rroemhild/mailpile

MySQL

docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag

… where some-mysql is the name you want to assign to your container, my-secret-pw is the password to be set for the MySQL root user and tag is the tag specifying the MySQL version you want.

docker.1668160217.txt.gz · Last modified: 2022/11/11 01:50 by vissie