From e70ac14204f767eea5008ab93a5a017fca3e70fe Mon Sep 17 00:00:00 2001 From: Julio <38758281+Julioevm@users.noreply.github.com> Date: Thu, 2 Jul 2020 16:36:15 +0200 Subject: [PATCH] Update docker-compose.yml Change docker-compose.yml to make docker compose down work properly. --- docker-compose.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cc996b0..9a8eb42 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,8 @@ -version: '3.1' +version: '3.4' services: osx: + container_name: docker-osx build: context: . args: @@ -10,9 +11,16 @@ services: image: sickcodes/docker-osx privileged: true environment: - DISPLAY: ${DISPLAY:-:0.0} + - DISPLAY=${DISPLAY:-:0.0} network_mode: "host" cap_add: - ALL volumes: - - ./tmp/.X11-unix:/tmp/.X11-unix + - /tmp/.X11-unix:/tmp/.X11-unix + - /dev:/dev + - /lib/modules:/lib/modules + - docker-osx_data:/home + +volumes: + docker-osx_data: + name: docker-osx_data