[ https://issues.apache.org/jira/browse/MYNEWT-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15345107#comment-15345107 ]
Aditi Hilbert commented on MYNEWT-328: -------------------------------------- These are separate issues. The first one is for the docker daemon. By adding your user in the group docker you are making sure you can run any docker container as that user. We will make a note of it in the documentation as you suggest. The second one is related to the docker client and container-specific. We are aware of this second issue and are working on it. Our container assigns ownership to root when it creates the files in the container. It needs to be able to detect who issued the docker command for that container and assign ownership to that user instead. > Docker container instructions should say to add user to group docker > -------------------------------------------------------------------- > > Key: MYNEWT-328 > URL: https://issues.apache.org/jira/browse/MYNEWT-328 > Project: Mynewt > Issue Type: Improvement > Components: Documentation > Affects Versions: WISHLIST > Environment: Ubuntu 16.04, mynewt 0.9 > Reporter: lloyd konneker > Assignee: Aditi Hilbert > Priority: Trivial > > If you follow the documented example for installing Docker and the mynewt > container, it fails with "Failed to connect to Docker daemon", UNLESS you > follow the instructions given at docker.com for adding your user to the group > docker. > I think the documentation could say "Be sure to follow the Docker > installation instructions related to group docker. You must be able to run > the docker command from a terminal without prefacing it with sudo." (An > alternative fix is to add "sudo" to the newt script?) > The instructions at docker.com for Linux installation using Ubuntu have > "Optional Configuration" steps. The step of adding your user to the docker > group seems necessary to use newt as described. Some of the other steps such > as "Configure Docker daemon to start on boot" don't seem to be necessary. -- This message was sent by Atlassian JIRA (v6.3.4#6332)