mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-14 07:33:30 +01:00
docker-compose down #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @seevik2580 on GitHub (Jun 21, 2020).
hi, i installed mac with
docker-compose.yml:after successful install, when i made some changes inside
docker-compose.ymli need to usedocker-compose down && docker-compose upto take effect, but it will wipe all my data, and i have to install mac again. can you help me how to preserve volume with data ?thanks <3
@seevik2580 commented on GitHub (Jun 22, 2020):
i think i figured out with creating new volume
docker volume create docker-osx_datathen make some changes inside
docker-compose.ymland now i can safely use
docker-compose down:)@sickcodes commented on GitHub (Jun 23, 2020):
Awesome work! Want to submit a PR?
@seevik2580 commented on GitHub (Jun 24, 2020):
i don't know how to do it unfortunately, i have just a little experience with git.
feel free to make yours.
@seevik2580 commented on GitHub (Jun 24, 2020):
here is the template, i made some changes, removing
external: truereplacing with customnamefor docker-compose to auto create volume if not exists yet. because whenexternal: trueis present, docker-compose cant create volume, and you have to create it manualy withdocker volume createcommand and whenname:is not present, docker-compose create volume with prefix_ of service name so need to use version 3.4 instead of 3.1 because custom names for volumes was added in 3.4@Julioevm commented on GitHub (Jul 2, 2020):
I've made the PR:
https://github.com/sickcodes/Docker-OSX/pull/57
@seevik2580 commented on GitHub (Jul 2, 2020):
thank you <3 i need to learn how to do it in future
@sickcodes commented on GitHub (Jul 2, 2020):
❤️❤️❤️❤️ I’ll merge when I’m back at the PC @Julioevm ✅