Open hgontijo opened 7 years ago
The issue is in fixSource
. It always tries to break down the name into an EFS volume name even when --noresolve is set and an IP is provided.
I have found the fix to be as simple as adding this to the start of fixSource:
func (e efsDriver) mountVolume(name, id string) string {
if !e.resolve {
return name + ":/"
}
...
}
When I try to use docker-volume-netshare to mount an EFS volume on a Docker container, the mount command issued does not refer to the respective EFS IP. I cannot use EFS via DNS since our VPC setup does not support Amazon DNS server yet.
docker-volume-netshare start:
Docker run:
I hard-coded the source IP at
netshare/drivers/efs.go
just to give a try and it worked fine:Version: commit
4bfe7ba0572ee9d135dd59924548a37b1ab2af66