Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GINK03/af3981dc0c3381d733c89ef88a5a7e8a to your computer and use it in GitHub Desktop.
Save GINK03/af3981dc0c3381d733c89ef88a5a7e8a to your computer and use it in GitHub Desktop.
dockerでファイルシステムをマウントして使う.md

こんなふうになるものなるものらしい。

ホスト側のdb_dataはパーミッションを気にしなくてはならない!

 docker run -p 1022:22 -it \
  --mount type=bind,source="$(pwd)"/db_data,target=/db_data \
  --mount type=bind,source="$(pwd)"/db_sec,target=/db_sec \
  --mount type=bind,source="$(pwd)"/db_srb,target=/db_srb \
  nardtree/solid-scraper server.py 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment