{"action":"created","issue":{"url":"https://api.github.com/repos/ClusterHQ/dvol/issues/67","repository_url":"https://api.github.com/repos/ClusterHQ/dvol","labels_url":"https://api.github.com/repos/ClusterHQ/dvol/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/ClusterHQ/dvol/issues/67/comments","events_url":"https://api.github.com/repos/ClusterHQ/dvol/issues/67/events","html_url":"https://github.com/ClusterHQ/dvol/issues/67","id":180443817,"number":67,"title":"docker-compose: no declaration was found in the volumes section","user":{"login":"Edke","id":115118,"avatar_url":"https://avatars2.githubusercontent.com/u/115118?v=4","gravatar_id":"","url":"https://api.github.com/users/Edke","html_url":"https://github.com/Edke","followers_url":"https://api.github.com/users/Edke/followers","following_url":"https://api.github.com/users/Edke/following{/other_user}","gists_url":"https://api.github.com/users/Edke/gists{/gist_id}","starred_url":"https://api.github.com/users/Edke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edke/subscriptions","organizations_url":"https://api.github.com/users/Edke/orgs","repos_url":"https://api.github.com/users/Edke/repos","events_url":"https://api.github.com/users/Edke/events{/privacy}","received_events_url":"https://api.github.com/users/Edke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-10-01T07:33:29Z","updated_at":"2018-05-09T07:50:52Z","closed_at":null,"author_association":"NONE","body":"Hello. \n\nTrying to spin dvol, but encounter problems:\n\ndocker-compose.yml:\n\n``` yml\n\nversion: \"2\"\nservices:\n  web:\n    container_name: web-dev\n    build:\n      context: .\n      dockerfile: services/development/web/Dockerfile\n    links:\n      - db\n      - cache\n    depends_on:\n      - db\n      - cache\n\n  queue:\n    container_name: queue-dev\n    image: queue:latest\n    entrypoint: python2.7 manage.py rqworker\n    links:\n      - db\n      - cache\n    depends_on:\n      - db\n      - cache\n\n  db:\n    container_name: db-dev\n    image: db:latest\n    volumes:\n      - \"db:/var/lib/postgresql/data\"\n    volume_driver: dvol\n\n  cache:\n    container_name: cache-dev\n    image: redis:latest\n\n```\n\nspinning docker-compose:\n\n``` bash\n$ docker-compose up\nERROR: Named volume \"db:/var/lib/postgresql/data:rw\" is used in service \"db\" but no declaration was found in the volumes section.\n```\n\n``` bash\n$ docker volume ls\nlist dvol: VolumeDriver.List: \n<html>\n  <head><title>404 - No Such Resource</title></head>\n  <body>\n    <h1>No Such Resource</h1>\n    <p>No such child resource.</p>\n  </body>\n</html>\n\nDRIVER              VOLUME NAME\nlocal               00894d48cfdd9d2493378e0b12413294756a20142cc8921b137881c5c6aecfc4\nlocal               010b05964a81ad4219a9f3c05d55a24f9fefec4644a360498fb3ba064470290c\n```\n\n``` bash\n$ docker info\nContainers: 32\n Running: 1\n Paused: 0\n Stopped: 31\nImages: 195\nServer Version: 1.12.1\nStorage Driver: devicemapper\n Pool Name: docker-254:1-1054363-pool\n Pool Blocksize: 65.54 kB\n Base Device Size: 107.4 GB\n Backing Filesystem: ext4\n Data file: /dev/loop0\n Metadata file: /dev/loop1\n Data Space Used: 17.87 GB\n Data Space Total: 107.4 GB\n Data Space Available: 4.271 GB\n Metadata Space Used: 20.53 MB\n Metadata Space Total: 2.147 GB\n Metadata Space Available: 2.127 GB\n Thin Pool Minimum Free Space: 10.74 GB\n Udev Sync Supported: true\n Deferred Removal Enabled: false\n Deferred Deletion Enabled: false\n Deferred Deleted Device Count: 0\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\n WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.\n Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\n Library Version: 1.02.133 (2016-08-15)\nLogging Driver: json-file\nCgroup Driver: cgroupfs\nPlugins:\n Volume: local dvol\n Network: bridge host null overlay\nSwarm: inactive\nRuntimes: runc\nDefault Runtime: runc\nSecurity Options: seccomp\nKernel Version: 4.7.2-1-ARCH\nOperating System: Arch Linux\nOSType: linux\nArchitecture: x86_64\nCPUs: 4\nTotal Memory: 11.33 GiB\nName: thingol\nID: CFYC:6PZ7:X5EQ:U6CL:UVRT:NAYB:FART:Y3HS:Z4UE:UPRU:7EM6:XP25\nDocker Root Dir: /var/lib/docker\nDebug Mode (client): false\nDebug Mode (server): false\nRegistry: https://index.docker.io/v1/\nInsecure Registries:\n 127.0.0.0/8\n```\n"},"comment":{"url":"https://api.github.com/repos/ClusterHQ/dvol/issues/comments/387653093","html_url":"https://github.com/ClusterHQ/dvol/issues/67#issuecomment-387653093","issue_url":"https://api.github.com/repos/ClusterHQ/dvol/issues/67","id":387653093,"user":{"login":"prat3ik","id":23506005,"avatar_url":"https://avatars1.githubusercontent.com/u/23506005?v=4","gravatar_id":"","url":"https://api.github.com/users/prat3ik","html_url":"https://github.com/prat3ik","followers_url":"https://api.github.com/users/prat3ik/followers","following_url":"https://api.github.com/users/prat3ik/following{/other_user}","gists_url":"https://api.github.com/users/prat3ik/gists{/gist_id}","starred_url":"https://api.github.com/users/prat3ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prat3ik/subscriptions","organizations_url":"https://api.github.com/users/prat3ik/orgs","repos_url":"https://api.github.com/users/prat3ik/repos","events_url":"https://api.github.com/users/prat3ik/events{/privacy}","received_events_url":"https://api.github.com/users/prat3ik/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T07:50:52Z","updated_at":"2018-05-09T07:50:52Z","author_association":"NONE","body":"Hi @Edke ,\r\n\r\nYou should add volume section in your .yml file, please refer below code:\r\n\r\nversion: \"2\"\r\nservices:\r\n  web:\r\n    container_name: web-dev\r\n    build:\r\n      context: .\r\n      dockerfile: services/development/web/Dockerfile\r\n    links:\r\n      - db\r\n      - cache\r\n    depends_on:\r\n      - db\r\n      - cache\r\n\r\n  queue:\r\n    container_name: queue-dev\r\n    image: queue:latest\r\n    entrypoint: python2.7 manage.py rqworker\r\n    links:\r\n      - db\r\n      - cache\r\n    depends_on:\r\n      - db\r\n      - cache\r\n\r\n  db:\r\n    container_name: db-dev\r\n    image: db:latest\r\n    volumes:\r\n      - \"db:/var/lib/postgresql/data\"\r\n    volume_driver: dvol\r\n\r\n  cache:\r\n    container_name: cache-dev\r\n    image: redis:latest\r\n\r\n**volumes:\r\n db:**"}}
{"actor":{"display_login":"prat3ik"}}