{"action":"created","issue":{"url":"https://api.github.com/repos/scaleway/image-ubuntu/issues/68","repository_url":"https://api.github.com/repos/scaleway/image-ubuntu","labels_url":"https://api.github.com/repos/scaleway/image-ubuntu/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/scaleway/image-ubuntu/issues/68/comments","events_url":"https://api.github.com/repos/scaleway/image-ubuntu/issues/68/events","html_url":"https://github.com/scaleway/image-ubuntu/issues/68","id":151959893,"number":68,"title":"Docker won't run on Xenial","user":{"login":"ivkos","id":991028,"avatar_url":"https://avatars.githubusercontent.com/u/991028?v=3","gravatar_id":"","url":"https://api.github.com/users/ivkos","html_url":"https://github.com/ivkos","followers_url":"https://api.github.com/users/ivkos/followers","following_url":"https://api.github.com/users/ivkos/following{/other_user}","gists_url":"https://api.github.com/users/ivkos/gists{/gist_id}","starred_url":"https://api.github.com/users/ivkos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivkos/subscriptions","organizations_url":"https://api.github.com/users/ivkos/orgs","repos_url":"https://api.github.com/users/ivkos/repos","events_url":"https://api.github.com/users/ivkos/events{/privacy}","received_events_url":"https://api.github.com/users/ivkos/received_events","type":"User","site_admin":false},"labels":[{"id":153909936,"url":"https://api.github.com/repos/scaleway/image-ubuntu/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-04-29T20:18:21Z","updated_at":"2017-01-23T09:49:16Z","closed_at":null,"body":"Docker fails to install since it gets stuck at `Setting up docker.io`. I waited about 10 minutes and stopped its service using `systemctl stop docker`\n\n```\n# apt-get install docker.io\n...\n...\nSetting up docker.io (1.10.3-0ubuntu6) ...\naddgroup: The group `docker' already exists as a system group. Exiting.\nJob for docker.service canceled.\ninvoke-rc.d: initscript docker, action \"start\" failed.\ndpkg: error processing package docker.io (--configure):\n subprocess installed post-installation script returned error exit status 1\nSetting up ubuntu-fan (0.9.0) ...\nProcessing triggers for systemd (229-4ubuntu4) ...\nProcessing triggers for libc-bin (2.23-0ubuntu3) ...\nProcessing triggers for dbus (1.10.6-1ubuntu3) ...\nErrors were encountered while processing:\n docker.io\nE: Sub-process /usr/bin/dpkg returned an error code (1)\nW: Operation was interrupted before it could finish\n```\n\nIt fails to run after restarting its service:\n\n```\n# journalctl -u docker\n\n-- Logs begin at Fri 2016-04-29 19:43:02 UTC, end at Fri 2016-04-29 20:01:24 UTC. --\nApr 29 19:46:29 vps systemd[1]: Starting Docker Application Container Engine...\nApr 29 19:57:38 vps systemd[1]: Stopped Docker Application Container Engine.\nApr 29 19:57:47 vps systemd[1]: Starting Docker Application Container Engine...\nApr 29 19:57:47 vps docker[5161]: time=\"2016-04-29T19:57:47.322396500Z\" level=error msg=\"devmapper: Unable to delete device: devicemapper: Can't set task name /dev/mapper/docker-254:0-788386-pool\"\nApr 29 19:57:47 vps docker[5161]: time=\"2016-04-29T19:57:47.323247501Z\" level=warning msg=\"devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.\"\nApr 29 19:57:47 vps docker[5161]: time=\"2016-04-29T19:57:47.344143511Z\" level=error msg=\"[graphdriver] prior storage driver \\\"devicemapper\\\" failed: devicemapper: Can't set task name /dev/mapper/docker-254:0-788386-pool\"\nApr 29 19:57:47 vps docker[5161]: time=\"2016-04-29T19:57:47.344669105Z\" level=fatal msg=\"Error starting daemon: error initializing graphdriver: devicemapper: Can't set task name /dev/mapper/docker-254:0-788386-pool\"\nApr 29 19:57:47 vps systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE\nApr 29 19:57:47 vps systemd[1]: Failed to start Docker Application Container Engine.\nApr 29 19:57:47 vps systemd[1]: docker.service: Unit entered failed state.\nApr 29 19:57:47 vps systemd[1]: docker.service: Failed with result 'exit-code'.\n```\n\n```\n# uname -a\nLinux vps 4.5.2-docker-2 #1 SMP Fri Apr 29 08:57:24 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\n```\n\nI'm running this on a VC1S instance, and the bootscript is `x86_64 4.5.2 docker #2`\n\nI encounter this issue no matter if I'm following the Docker Docs guide ([Installation on Ubuntu](https://docs.docker.com/engine/installation/linux/ubuntulinux/)) or installing `docker.io` from the Ubuntu repos.\n\nIt's worth mentioning that while it was stuck at `Setting up docker.io` the docker service was actually running, but executing `docker info` hung as well and produced no output.\n\nMaybe this issue has something to do with the kernel version (v4.5) while Docker seemingly supports only v4.4, as mentioned here: https://github.com/docker/docker/issues/22371#issuecomment-215254534\n\nCould a v4.4 bootscript with docker support fix this?\n"},"comment":{"url":"https://api.github.com/repos/scaleway/image-ubuntu/issues/comments/274442456","html_url":"https://github.com/scaleway/image-ubuntu/issues/68#issuecomment-274442456","issue_url":"https://api.github.com/repos/scaleway/image-ubuntu/issues/68","id":274442456,"user":{"login":"miclud","id":1230887,"avatar_url":"https://avatars.githubusercontent.com/u/1230887?v=3","gravatar_id":"","url":"https://api.github.com/users/miclud","html_url":"https://github.com/miclud","followers_url":"https://api.github.com/users/miclud/followers","following_url":"https://api.github.com/users/miclud/following{/other_user}","gists_url":"https://api.github.com/users/miclud/gists{/gist_id}","starred_url":"https://api.github.com/users/miclud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miclud/subscriptions","organizations_url":"https://api.github.com/users/miclud/orgs","repos_url":"https://api.github.com/users/miclud/repos","events_url":"https://api.github.com/users/miclud/events{/privacy}","received_events_url":"https://api.github.com/users/miclud/received_events","type":"User","site_admin":false},"created_at":"2017-01-23T09:49:16Z","updated_at":"2017-01-23T09:49:16Z","body":"Doing what @oliwer suggested. Had to put the file in ` /etc/systemd/system/docker.service.d` for it to be loaded, as stated here https://docs.docker.com/engine/admin/systemd/#/custom-docker-daemon-options\r\nBut else it worked as a charm. And it seems indeed as the proper way for this issue."}}
{"actor":{"display_login":"miclud"}}