Replies: 2 comments
-
Something I ended up doing today was installing |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the hints @kbdharun! Found the discord thread. Combined with another user's reddit post, I pieced together a custom image that works out of the box with docker. The key block is under modules:
- name: init-setup
type: shell
commands:
- lpkg --unlock
- apt-get update
- name: install-docker
type: shell
commands:
- install -m 0755 -d /etc/apt/keyrings
- curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
- chmod a+r /etc/apt/keyrings/docker.asc
- echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable" > /etc/apt/sources.list.d/docker.list
- cat /etc/apt/sources.list.d/docker.list
- apt-get update
- apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin Hope that saves future visitors who need docker some time 🤞 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This guide/tutorial has been imported from Discord Forums.
Author: taukakao
It's not possible to install it inside the container, since that would need some major changes. So don't install it with apt.
But you can use podman (which is almost identical to docker) on the host or install docker on the host.
To use podman:
host-shell pkexec podman
or:
host-shell podman
for rootless containers (in most cases the better choice)
If you really want to use docker instead of podman, run:
Beta Was this translation helpful? Give feedback.
All reactions