docker-volume-git
docker-volume-git copied to clipboard
No such host, cannot validate certificate, must remove volume before creating new
The concept of this plugin in fantastic expect that I'm running into several issues with version 0.2.3 making it unusable. Using docker-compose. Docker version is 18.06.1-ce. Ubuntu 16.04.
- DNS resolution does not appear to work. Receiving "/info/refs?service=git-upload-pack: dial tcp: lookup
: no such host. I have set the name resolution in the hosts file, the dns in the daemon, the nameserver in the /etc/resolv.conf on the host, and dns for the container itself but none of these work. There are no issues when connecting from the host using curl. - Using an IP in the url parameter with a server that has a self-signed cert results in "info/refs?service=git-upload-pack: x509: cannot validate certificate for <IP> because it doesn't contain any IP SANs". Normally, the workaround via a shell is adding "GIT_SSL_NO_VERIFY=true" prior to the url in a git command but that does not work with the plugin.
- The volume must be removed prior to executing a subsequent "docker-compose up" otherwise the following error, for example, occurs: "ERROR: for db Cannot create container for service db: VolumeDriver.Mount: repository already exist"
Is there any way to resolve 1 or 2 (which is my highest priority)? Fixing 3 is a nice to have but manually removing the volume will work for the time being if required.
An additional issue(s), executing the docker command examples using a populated git repo produces a volume without error but the volume is empty. This may be a bigger problem because the plugin does not appear to work at all.