Docker: Automatically migrate repo

This keeps docker containers from entering a crashloop on new image versions

License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
This commit is contained in:
kpcyrd 2017-02-12 21:10:28 +00:00
parent 04c95fa9d0
commit 3799bcfc2e
2 changed files with 2 additions and 2 deletions

View File

@ -76,4 +76,4 @@ VOLUME $IPFS_PATH
ENTRYPOINT ["/usr/local/bin/start_ipfs"]
# Execute the daemon subcommand by default
CMD ["daemon"]
CMD ["daemon", "--migrate=true"]

View File

@ -53,4 +53,4 @@ RUN cd $SRC_PATH \
USER ipfs
VOLUME $IPFS_PATH
ENTRYPOINT ["/usr/local/bin/start_ipfs"]
CMD ["daemon"]
CMD ["daemon", "--migrate=true"]