From 196d8f4988bf5227d78acad65069efdac5bedab0 Mon Sep 17 00:00:00 2001 From: laqiiz Date: Mon, 29 Aug 2022 00:23:42 +0900 Subject: [PATCH] PENDING windows cannot support bind propagation --- README.md | 12 ++++++++++++ docker-compose.yml | 7 ++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 14502f7..554cfb2 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,18 @@ echo "hello localstackmount" > hello.txt cat hello.txt ``` +## docker compose + +WIP + +```sh +docker compose up -d +docker exec -it localstackmount-mount-1 bash +cd ~/mount/localstack/ +ls +# +``` + ## Limitations diff --git a/docker-compose.yml b/docker-compose.yml index f095364..0d3e0c6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.8" +version: "3.9" services: localstack: @@ -40,12 +40,13 @@ services: security_opt: - apparmor:unconfined volumes: -# - ./mount:/root/mount/localstack:ro # https://matsuand.github.io/docs.docker.jp.onthefly/compose/compose-file/compose-file-v3/#volumes + # https://docs.docker.com/compose/compose-file/compose-file-v3/#long-syntax-3 - type: bind - source: ./mount + source: mount target: /root/mount bind: + # https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation propagation: rshared depends_on: localstack: