Skip to content

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

@swapnil7434

Description

@swapnil7434

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"]}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions