Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host_path - is not a valid absolute path (docker stack file) #250

Open
swapnil7434 opened this issue Jul 31, 2017 · 1 comment
Open

host_path - is not a valid absolute path (docker stack file) #250

swapnil7434 opened this issue Jul 31, 2017 · 1 comment

Comments

@swapnil7434
Copy link

I have created docker stack file with following configuration

nginx:
image: 'nginx:latest'
ports:

  • '80:80'
  • '443:443'
    tags:
  • app=cornerstone
  • env=dev
    volumes:
  • '/etc/nginx/conf.d'
  • '/etc/nginx/vhost.d'
  • '/usr/share/nginx/html'
  • '../../../volumes/proxy/certs:/etc/nginx/certs:r'
    labels:
  • 'com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy'
    nginx-gen:
    image: 'jwilder/docker-gen:latest'
    tags:
  • app=cornerstone
  • env=dev
    volumes_from:
  • nginx
    volumes:
  • '/var/run/docker.sock:/tmp/docker.sock:ro'
  • '../../../volumes/proxy/templates:/etc/docker-gen/templates:ro'

labels:

  • 'com.github.jrcs.letsencrypt_nginx_proxy_companion.docker_gen'
    command: '-notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf'
    nginx-letsencrypt:
    image: 'jrcs/letsencrypt-nginx-proxy-companion:latest'
    tags:
  • app=cornerstone
  • env=dev
    volumes_from:
  • nginx
    volumes:
  • '/var/run/docker.sock:/var/run/docker.sock:ro'
  • '../../../volumes/proxy/certs:/etc/nginx/certs:rw'

But when i am redeploying file, i am getting following error.

Service 'nginx': {u'binddefinition': {u'host_path': [u"'host_path': ../../../volumes/proxy/certs is not a valid absolute path"]}}

@VincentGuyader
Copy link

why do not replace ../../../volumes/proxy/certs with an absolute path such as
/folder/folder/folder/volumes/proxy/certs ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants