Run docker on imutable Fedora Sericea in toolbox
https://discussion.fedoraproject.org/t/using-docker-in-fedora-silverblue-toolbox/74482/9 Save to not lose
curl -fsSL https://get.docker.com/rootless | sh
# to start docker on start
sudo loginctl enable-linger <my username>
if you want to change to storage driver to overlay:
# you have to disable selinux
sudo rpm-ostree kargs --append=selinux=0
# change storage driver:
> cat ~/.config/docker/daemon.json
{"storage-driver": "overlay2"}
If you want to install docker-compose:
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o ~/bin/docker-compose
chmod u+x ~/bin/docker-compose
export DOCKER_HOST=unix:///run/user/1000/docker.sock
You can start docker containers from toolbox:
docker run --rm ubuntu echo "Hello"