Run Raspbian VM (ARM) in Docker container
2/5/2020 2:40:10 PM
Quick guide to setup Raspbian in Docker
Install Docker
Arch
yay -S docker docker-compose
Ubuntu
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
Start & Enable Docker service
sudo systemctl start docker
sudo sysyemctl enable docker
Docker Compose
docker-compose.yml
version: '3.7'
services:
raspbian-vm:
image: hannseman/raspbian
container_name: raspbian-vm
privileged: true
ports:
- "2222:2222"
Run Docker-Compose
Start Service
sudo docker-compose up -d
Stop Service
sudo docker-compose down
Alternativly run via Docker Command
sudo docker run -it -p 2222:2222 --privileged hannseman/raspbian
Connect to Server via SSH
ssh pi@servername.de -p 2222