use -v instead of --bind to auto create the directories

This commit is contained in:
James Swineson 2020-04-17 05:54:41 -07:00
parent a34c100ada
commit 264800d621

View File

@ -14,8 +14,8 @@ docker run -d \
--memory=256m \ --memory=256m \
--cap-add=SYS_ADMIN --cap-add=CAP_NET_RAW --cap-add=CAP_CHOWN \ --cap-add=SYS_ADMIN --cap-add=CAP_NET_RAW --cap-add=CAP_CHOWN \
--mount type=tmpfs,destination=/var/atlasdata \ --mount type=tmpfs,destination=/var/atlasdata \
--mount type=bind,src=/var/atlas-probe/etc,dst=/var/atlas-probe/etc \ -v /var/atlas-probe/etc:/var/atlas-probe/etc \
--mount type=bind,src=/var/atlas-probe/status,dst=/var/atlas-probe/status \ -v /var/atlas-probe/status:/var/atlas-probe/status \
--name ripe-atlas \ --name ripe-atlas \
jamesits/ripe-atlas:latest jamesits/ripe-atlas:latest
``` ```