-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Podman in rootless mode on dev-desktops
Podman is a container runtime that supports running containers without root access. This allows us to run it on a shared host like the dev-desktops without compromising the security of the system. The package for Podman and an alias for `docker` get installed through the system's package manager, as are packages for user-space networking and an alternative storage driver. The storage driver is enabled in a global configuration file so that it applies to all users.
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[storage] | ||
driver = "overlay" | ||
|
||
[storage.options.overlay] | ||
mount_program = "/usr/bin/fuse-overlayfs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
|
||
# These tasks follow the instructions for running Podman without root privileges | ||
# https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md | ||
|
||
- name: Install podman | ||
package: | ||
name: podman | ||
state: present | ||
|
||
- name: Install podman-docker | ||
package: | ||
name: podman-docker | ||
state: present | ||
|
||
# Required for user-space networking | ||
- name: Install slirp4netns | ||
package: | ||
name: slirp4netns | ||
state: present | ||
|
||
# Recommended instead of the default VFS file system | ||
- name: Install fuse-overlayfs | ||
package: | ||
name: fuse-overlayfs | ||
state: present | ||
|
||
- name: Copy global configuration file for storage driver | ||
copy: | ||
src: podman/storage.conf | ||
dest: /etc/containers/storage.conf | ||
owner: root | ||
group: root | ||
mode: 0644 |