Use a data volume container for BoltDB files.

We provide a very small image to use for this container.
Also we add an empty weavedata.db file to weave image so it doesn't crash when run without volume override
This commit is contained in:
Bryan Boreham committed 2016-04-13 16:07:55 +01:00
1 parent 6b08f97910
commit 358342aa4f
6 files changed
+27 -3

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ func main() {
mflag.StringVar(&dnsConfig.EffectiveListenAddress, []string{"-dns-effective-listen-address"}, "", "address DNS will actually be listening, after Docker port mapping")
mflag.StringVar(&datapathName, []string{"-datapath"}, "", "ODP datapath name")
mflag.StringVar(&trustedSubnetStr, []string{"-trusted-subnets"}, "", "comma-separated list of trusted subnets in CIDR notation")
mflag.StringVar(&dbPrefix, []string{"-db-prefix"}, "weave", "pathname/prefix of filename to store data")
mflag.StringVar(&dbPrefix, []string{"-db-prefix"}, "/weavedb/weave", "pathname/prefix of filename to store data")
// crude way of detecting that we probably have been started in a
// container, with `weave launch` --> suppress misleading paths in