~ not expanding properly with multiple volumes
From esv-gitlab-sync's Dockerfile:
VOLUME /.python-gitlab.cfg /energysavvy
$ docksi install projects.evoworx.org:4567/kyle/esv-gitlab-sync
esv-gitlab-sync installed sucessfully!
$ esv-gitlab-sync --docksi-dry-run
Volume flags:
--volume /home/kyle/.python-gitlab.cfg:/.python-gitlab.cfg
--volume ~/energysavvy:/energysavvy
Port flags:
$ esv-gitlab-sync
docker: Error response from daemon: create ~/energysavvy: "~/energysavvy" includes
invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are
allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.
Looks like the bash substitution on ~
only works once. It might be possible to just replace the ~
literal with $HOME
in the first place and avoid that substitution entirely. I was using eval
before for this task, everyone's favorite secure command.
CC @dhelfman