Skip to content

Instantly share code, notes, and snippets.

@justinc1
Last active October 1, 2022 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinc1/34011567c24e1871a3e8dc1f73419d8e to your computer and use it in GitHub Desktop.
Save justinc1/34011567c24e1871a3e8dc1f73419d8e to your computer and use it in GitHub Desktop.
Run docker in FC36 container using nestybox as dind alternative
# https://github.com/nestybox/sysbox/blob/master/docs/developers-guide/build.md
# https://github.com/zaunerc/codesandbox/blob/master/running-systemd-inside-a-docker-container/Dockerfile
#
# docker build -t fc36-dockerd .
# docker run --runtime=sysbox-runc --rm -it --hostname my_cont -d fc36-dockerd
FROM fedora:36
RUN dnf -y install systemd
RUN dnf -y install dnf-plugins-core
RUN dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
RUN dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
RUN systemctl enable docker
# RUN systemctl start docker
RUN yum -y install procps-ng vim nano less
STOPSIGNAL SIGRTMIN+3
CMD [ "/sbin/init" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment