diff --git a/Containerfile b/Containerfile index 2e640f1d..18d056a5 100644 --- a/Containerfile +++ b/Containerfile @@ -55,6 +55,9 @@ RUN mkdir -p /var/lib/alternatives && \ /tmp/build.sh && \ ostree container commit +# enable but don't start docker service socket +RUN systemctl enable docker.socket +RUN ostree container commit ## NOTES: # - /var/lib/alternatives is required to prevent failure with some RPM installs # - All RUN commands must end with ostree container commit diff --git a/README.md b/README.md index 143101fe..74f1f6fe 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ This is my own custom Universal Blue image, that is based off of the bazzite-nvi - **gnome-disk-utility** - Needed for auto mounting disks from a GUI - **OpenSnitch** - custom outbound firewall - **gnome-system-monitor** - The KDE system monitor is not great at all +- **docker** - I would like to use either docker or podman, it's nice to have the choice # VM Image diff --git a/build.sh b/build.sh index 54c9207d..e5e2edb6 100755 --- a/build.sh +++ b/build.sh @@ -33,6 +33,13 @@ rpm-ostree install \ /tmp/opensnitch.rpm \ /tmp/opensnitch-ui.rpm sudo systemctl enable opensnitch.service + +# Install docker +rpm-ostree install docker-ce \ + docker-ce-cli \ + docker-buildx-plugin \ + docker-compose-plugin \ + containerd.io #### Example for enabling a System Unit File diff --git a/system_files/etc/yum.repos.d/docker-ce.repo b/system_files/etc/yum.repos.d/docker-ce.repo new file mode 100644 index 00000000..8a0de160 --- /dev/null +++ b/system_files/etc/yum.repos.d/docker-ce.repo @@ -0,0 +1,6 @@ +[docker-ce-stable] +name=Docker CE Stable - $basearch +baseurl=https://download.docker.com/linux/fedora/$releasever/$basearch/stable +enabled=1 +gpgcheck=1 +gpgkey=https://download.docker.com/linux/fedora/gpg