Skip to content

Commit

Permalink
#110: Adjust container-creation options
Browse files Browse the repository at this point in the history
  • Loading branch information
BR0kEN- committed Mar 19, 2018
1 parent fb4480c commit 1578f32
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions env/tasks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@

- name: Define the options
set_fact:
options: >
-v /sys/fs/cgroup:/sys/fs/cgroup:ro
options: >-
--tmpfs /run
--tmpfs /run/lock
--security-opt seccomp=unconfined
when: "'Darwin' != uname.stdout"

- name: Create the container
shell: |-
docker run \
-d \
-h '{{ hostname }}' \
-e 'container=docker' \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
--cap-add=SYS_ADMIN \
--security-opt seccomp=unconfined \
--name '{{ hostname }}' \
{{ options }} \
{{ mounts }} \
Expand All @@ -37,7 +39,7 @@
- name: Install the requirements
shell: |-
docker exec -t {{ hostname }} bash -c 'apt update -y && apt install sudo dbus python-minimal -y && service dbus restart'
docker exec -t {{ hostname }} bash -c 'apt update -y && apt install sudo python-minimal -y'
- name: Print the name of created container
debug:
Expand Down

0 comments on commit 1578f32

Please sign in to comment.