{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/2621","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/2621/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/2621/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/2621/events","html_url":"https://github.com/lxc/lxd/issues/2621","id":189878369,"number":2621,"title":"Unable to start docker daemon inside the lxc container","user":{"login":"akshaykarle","id":1443108,"avatar_url":"https://avatars.githubusercontent.com/u/1443108?v=3","gravatar_id":"","url":"https://api.github.com/users/akshaykarle","html_url":"https://github.com/akshaykarle","followers_url":"https://api.github.com/users/akshaykarle/followers","following_url":"https://api.github.com/users/akshaykarle/following{/other_user}","gists_url":"https://api.github.com/users/akshaykarle/gists{/gist_id}","starred_url":"https://api.github.com/users/akshaykarle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshaykarle/subscriptions","organizations_url":"https://api.github.com/users/akshaykarle/orgs","repos_url":"https://api.github.com/users/akshaykarle/repos","events_url":"https://api.github.com/users/akshaykarle/events{/privacy}","received_events_url":"https://api.github.com/users/akshaykarle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-16T23:08:31Z","updated_at":"2016-11-16T23:26:40Z","closed_at":"2016-11-16T23:16:22Z","body":"Hello,\r\n\r\nI started with a ubuntu 16.04.1 LTS VM, installed lxd 2.5 on it and attempted to create a docker enabled container using lxd. The container starts up fine but is unable to start the docker engine. I launched the container using the command specified in the README: \r\n\r\n``` $ lxc launch ubuntu:xenial my-docker-host -p default -p docker ```\r\n\r\nI then installed the docker-engine from the instructions specified on the [docker docs](https://docs.docker.com/engine/installation/linux/ubuntulinux/). This fails and is unable to start the docker daemon. The error I'm seeing from docker is this:\r\n```\r\nroot@docker-host:~# systemctl status docker.service\r\n● docker.service - Docker Application Container Engine\r\n   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)\r\n   Active: failed (Result: exit-code) since Wed 2016-11-16 22:54:01 UTC; 4min 44s ago\r\n     Docs: https://docs.docker.com\r\n  Process: 2155 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)\r\n Main PID: 2155 (code=exited, status=1/FAILURE)\r\n    Tasks: 0\r\n   Memory: 0B\r\n      CPU: 13ms\r\n   CGroup: /system.slice/docker.service\r\n\r\nNov 16 22:54:01 docker-host systemd[1]: docker.service: Failed with result 'exit-code'.\r\nNov 16 22:54:01 docker-host systemd[1]: Starting Docker Application Container Engine...\r\nNov 16 22:54:01 docker-host dockerd[2155]: time=\"2016-11-16T22:54:01.216180704Z\" level=info msg=\"libcontainerd: new containerd process, pid: 2158\"\r\nNov 16 22:54:01 docker-host dockerd[2155]: time=\"2016-11-16T22:54:01.216608328Z\" level=fatal msg=\"Failed to connect to containerd. Please make sure containerd is installed in your PATH or you have specificed the correct address. Got error: write /proc/2158/oom_score_adj: permission denied\"\r\nNov 16 22:54:01 docker-host systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE\r\nNov 16 22:54:01 docker-host systemd[1]: Failed to start Docker Application Container Engine.\r\nNov 16 22:54:01 docker-host systemd[1]: docker.service: Unit entered failed state.\r\nNov 16 22:54:01 docker-host systemd[1]: docker.service: Failed with result 'exit-code'.\r\nNov 16 22:54:01 docker-host systemd[1]: docker.service: Start request repeated too quickly.\r\nNov 16 22:54:01 docker-host systemd[1]: Failed to start Docker Application Container Engine.\r\n```\r\n\r\n\r\n# Required information\r\n\r\n * Distribution: Ubuntu\r\n * Distribution version: 16.04.1 LTS (Xenial Xerus)\r\n * The output of \"lxc info\" or if that fails:\r\n```\r\napiextensions:\r\n- storage_zfs_remove_snapshots\r\n- container_host_shutdown_timeout\r\n- container_syscall_filtering\r\n- auth_pki\r\n- container_last_used_at\r\n- etag\r\n- patch\r\n- usb_devices\r\n- https_allowed_credentials\r\n- image_compression_algorithm\r\n- directory_manipulation\r\n- container_cpu_time\r\n- storage_zfs_use_refquota\r\n- storage_lvm_mount_options\r\n- network\r\n- profile_usedby\r\n- container_push\r\n- container_exec_recording\r\n- certificate_update\r\n- container_exec_signal_handling\r\n- gpu_devices\r\napistatus: stable\r\napiversion: \"1.0\"\r\nauth: trusted\r\nenvironment:\r\n  addresses:\r\n  - 192.168.50.4:8443\r\n  architectures:\r\n  - x86_64\r\n - i686\r\n  driver: lxc\r\n  driverversion: 2.0.5\r\n  kernel: Linux\r\n  kernelarchitecture: x86_64\r\n  kernelversion: 4.4.0-31-generic\r\n  server: lxd\r\n  serverpid: 1379\r\n  serverversion: \"2.5\"\r\n  storage: dir\r\n  storageversion: \"\"\r\nconfig:\r\n  core.https_address: 192.168.50.4:8443\r\n  core.trust_password: true\r\npublic: false\r\n```\r\n\r\nDocker version:\r\n```\r\nClient:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        Wed Oct 26 22:01:48 2016\r\n OS/Arch:      linux/amd64\r\nCannot connect to the Docker daemon. Is the docker daemon running on this host?\r\n```\r\n\r\nNow, I don't know if this is a problem in lxc/lxd or docker, I will continue investigating but any help would be appreciated."},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/261106079","html_url":"https://github.com/lxc/lxd/issues/2621#issuecomment-261106079","issue_url":"https://api.github.com/repos/lxc/lxd/issues/2621","id":261106079,"user":{"login":"akshaykarle","id":1443108,"avatar_url":"https://avatars.githubusercontent.com/u/1443108?v=3","gravatar_id":"","url":"https://api.github.com/users/akshaykarle","html_url":"https://github.com/akshaykarle","followers_url":"https://api.github.com/users/akshaykarle/followers","following_url":"https://api.github.com/users/akshaykarle/following{/other_user}","gists_url":"https://api.github.com/users/akshaykarle/gists{/gist_id}","starred_url":"https://api.github.com/users/akshaykarle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshaykarle/subscriptions","organizations_url":"https://api.github.com/users/akshaykarle/orgs","repos_url":"https://api.github.com/users/akshaykarle/repos","events_url":"https://api.github.com/users/akshaykarle/events{/privacy}","received_events_url":"https://api.github.com/users/akshaykarle/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T23:26:40Z","updated_at":"2016-11-16T23:26:40Z","body":"Understood. Thanks @stgraber. Got it working now. Do you think we should update the README so that others won't run into the same problem as me?"}}
{"actor":{"display_login":"akshaykarle"}}