{"action":"created","issue":{"url":"https://api.github.com/repos/drone-plugins/drone-gcr/issues/9","repository_url":"https://api.github.com/repos/drone-plugins/drone-gcr","labels_url":"https://api.github.com/repos/drone-plugins/drone-gcr/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/drone-plugins/drone-gcr/issues/9/comments","events_url":"https://api.github.com/repos/drone-plugins/drone-gcr/issues/9/events","html_url":"https://github.com/drone-plugins/drone-gcr/issues/9","id":178170176,"number":9,"title":"Cannot connect to the Docker daemon","user":{"login":"tonglil","id":3250776,"avatar_url":"https://avatars.githubusercontent.com/u/3250776?v=3","gravatar_id":"","url":"https://api.github.com/users/tonglil","html_url":"https://github.com/tonglil","followers_url":"https://api.github.com/users/tonglil/followers","following_url":"https://api.github.com/users/tonglil/following{/other_user}","gists_url":"https://api.github.com/users/tonglil/gists{/gist_id}","starred_url":"https://api.github.com/users/tonglil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonglil/subscriptions","organizations_url":"https://api.github.com/users/tonglil/orgs","repos_url":"https://api.github.com/users/tonglil/repos","events_url":"https://api.github.com/users/tonglil/events{/privacy}","received_events_url":"https://api.github.com/users/tonglil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-20T20:21:18Z","updated_at":"2016-09-23T21:52:36Z","closed_at":"2016-09-23T11:18:46Z","body":"Although this might be a Drone 0.4 problem, I suspect this also occurs on 0.5.\r\n\r\nThe GCR plugin is spitting this out:\r\n```\r\n[info] Pulling image plugins/drone-gcr:latest\r\nDrone GCR Plugin built from ef21cf5\r\n$ /usr/bin/docker -d\r\nCannot connect to the Docker daemon. Is 'docker -d' running on this host?\r\nLogin failed.\r\n```\r\n\r\nThe `.drone.yml`'s publish section is:\r\n```\r\npublish:\r\n  gcr:\r\n    repo: gcr-project/image-name\r\n    tag: \"$$COMMIT\"\r\n    token: >\r\n       $$GOOGLE_CREDENTIALS\r\n```\r\n\r\nDrone is running on CoreOS.\r\n\r\n`docker info`:\r\n```\r\nContainers: 1\r\n Running: 1\r\n Paused: 0\r\n Stopped: 0\r\nImages: 10\r\nServer Version: 1.10.3\r\nStorage Driver: overlay\r\n Backing Filesystem: extfs\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nPlugins: \r\n Volume: local\r\n Network: null host bridge\r\nKernel Version: 4.7.0-coreos\r\nOperating System: CoreOS 1122.2.0 (MoreOS)\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 4\r\nTotal Memory: 7.307 GiB\r\nName: drone-general-prd\r\nID: SFQR:SMV2:CAU7:5SED:SA4K:UXQQ:XNTH:XACQ:Y6YR:3A72:FM5N:IVNZ\r\n```\r\n\r\nThe detailed error with `DOCKER_LAUNCH_DEBUG=true` is:\r\n```\r\n[info] Pulling image plugins/drone-gcr:latest\r\nDrone GCR Plugin built from ef21cf5\r\n$ /usr/bin/docker -d\r\ntime=\"2016-09-20T19:58:43.557647872Z\" level=info msg=\"Listening for HTTP on unix (/var/run/docker.sock)\" \r\ntime=\"2016-09-20T19:58:43.557524793Z\" level=warning msg=\"Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/cli/#daemon-storage-driver-option\" \r\ntime=\"2016-09-20T19:58:43.578490600Z\" level=fatal msg=\"Error starting daemon: error initializing graphdriver: exec: \\\"mkfs.ext4\\\": executable file not found in $PATH\" \r\nCannot connect to the Docker daemon. Is 'docker -d' running on this host?\r\nLogin failed.\r\n```\r\n\r\nWhen I am on the CoreOS host, running `mkfs.ext4` shows it is available:\r\n```\r\ncore@drone ~ $ mkfs.ext4\r\nUsage: mkfs.ext4 [-c|-l filename] [-b block-size] [-C cluster-size]\r\n\t[-i bytes-per-inode] [-I inode-size] [-J journal-options]\r\n\t[-G flex-group-size] [-N number-of-inodes]\r\n\t[-m reserved-blocks-percentage] [-o creator-os]\r\n\t[-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]\r\n\t[-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]\r\n\t[-t fs-type] [-T usage-type ] [-U UUID] [-jnpqvDFKSV] device [blocks-count]\r\n```\r\n\r\nIs this a docker-in-docker problem?\r\n\r\nIf I add `storage_driver: overlay` specifically, then the build completes successfully:\r\n\r\n```\r\n[info] Pulling image plugins/drone-gcr:latest\r\nDrone GCR Plugin built from ef21cf5\r\n$ /usr/bin/docker -d\r\ntime=\"2016-09-20T20:16:10.431110134Z\" level=info msg=\"Option DefaultDriver: bridge\" \r\ntime=\"2016-09-20T20:16:10.431152483Z\" level=info msg=\"Option DefaultNetwork: bridge\" \r\ntime=\"2016-09-20T20:16:10.431695150Z\" level=info msg=\"Listening for HTTP on unix (/var/run/docker.sock)\" \r\ntime=\"2016-09-20T20:16:10.431822186Z\" level=warning msg=\"Running modprobe bridge nf_nat br_netfilter failed with message: modprobe: can't change directory to '/lib/modules': No such file or directory\\n, error: exit status 1\" \r\ntime=\"2016-09-20T20:16:10.458762874Z\" level=info msg=\"Daemon has completed initialization\" \r\ntime=\"2016-09-20T20:16:10.458799292Z\" level=info msg=\"Docker daemon\" commit=d12ea79 execdriver=native-0.2 graphdriver=overlay version=1.8.1 \r\ntime=\"2016-09-20T20:16:15.444599304Z\" level=info msg=\"GET /v1.20/info\" \r\ntime=\"2016-09-20T20:16:15.465333653Z\" level=info msg=\"POST /v1.20/auth\" \r\nWARNING: login credentials saved in /.docker/config.json\r\nLogin Succeeded\r\n```\r\n\r\nI would like to not have to specify `overlay` manually, so is there anything I can do to help contribute to the plugin and make the storage detection more automatic?"},"comment":{"url":"https://api.github.com/repos/drone-plugins/drone-gcr/issues/comments/249311380","html_url":"https://github.com/drone-plugins/drone-gcr/issues/9#issuecomment-249311380","issue_url":"https://api.github.com/repos/drone-plugins/drone-gcr/issues/9","id":249311380,"user":{"login":"tonglil","id":3250776,"avatar_url":"https://avatars.githubusercontent.com/u/3250776?v=3","gravatar_id":"","url":"https://api.github.com/users/tonglil","html_url":"https://github.com/tonglil","followers_url":"https://api.github.com/users/tonglil/followers","following_url":"https://api.github.com/users/tonglil/following{/other_user}","gists_url":"https://api.github.com/users/tonglil/gists{/gist_id}","starred_url":"https://api.github.com/users/tonglil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonglil/subscriptions","organizations_url":"https://api.github.com/users/tonglil/orgs","repos_url":"https://api.github.com/users/tonglil/repos","events_url":"https://api.github.com/users/tonglil/events{/privacy}","received_events_url":"https://api.github.com/users/tonglil/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T21:52:36Z","updated_at":"2016-09-23T21:52:36Z","body":"Thanks, happy that it will be automatic."}}
{"actor":{"display_login":"tonglil"}}