Skip to content
Snippets Groups Projects
Commit 92531c1b authored by nimrod's avatar nimrod
Browse files

Access the Docker socket from a Toolbox container.

Change the socket group so it can be accessed from a Toolbox container.
parent a47e6aec
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,12 @@
mode: preserve
src: docker-restart
- name: Create a drop-in directory for the Docker service
- name: Create a drop-in directory for the Docker service and socket
loop:
- service
- socket
file:
path: /etc/systemd/system/docker.service.d
path: /etc/systemd/system/docker.{{ item }}.d
mode: 0o0755
state: directory
......@@ -35,6 +38,16 @@
notify:
- Systemd daemon reload
- name: Allow access from the toolbox container
copy:
content: |
[Socket]
SocketGroup=nimrod
dest: /etc/systemd/system/docker.socket.d/nimrod-group.conf
mode: 0o0644
notify:
- Systemd daemon reload
- name: Allow default Docker network access to local services
community.general.ufw:
direction: in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment