Step-by-step on how to replicate:
[Host machine]
## Install latest backports lxd
$ sudo apt install lxd/xenial-backports lxd-client/xenial-backports
...
## Initialise lxd default storage pool
$ sudo lxd init
Do you want to configure a new storage pool (yes/no) [default=yes]? yes
Name of the new storage pool [default=default]: default
Name of the storage backend to use (dir, btrfs, lvm) [default=dir]: dir
... (network setup)
## Create container for docker with nesting enabled
$ lxc launch ubuntu-daily:16.04 docktest -c security.nesting=true
## Enter a bash shell inside the container
$ lxc exec docktest -- bash
[LXD container]
## Install docker
# apt install docker.io -y
... (install)
## Confirm vfs storage driver
# docker info | grep Storage
Storage Driver: vfs
## Run Ubuntu inside docker
# docker run -it ubuntu
# docker create ubuntu
56a163f835da8a3b6b37d86b8ee1ab16e3b413efe9a57b22f8f0e6b919d43c30
[Docker container inside LXD container]
## Add a non-root test user
# adduser test
Adding user `test' ...
Adding new group `test' (1000) ...
Adding new user `test' (1000) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
Full Name []: Test user
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
## Attempt to su to test user
# su - test
Unable to cd to '/home/test'
... (error due to permisson issue)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1708445
Title:
dockerd umask inside lxd container
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1708445/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs