docker user creation to live-build/ubuntu-core/hooks/00-uid-gid-fix.chroot_early; add ubuntu user to docker group in live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot. This fixes static uid/gid maps for docker user/group.ubuntu/yakkety
parent
9bda91ee77
commit
29c976b326
@ -1,18 +0,0 @@
|
|||||||
#!/bin/sh -x
|
|
||||||
|
|
||||||
# FIXME: add click hook for user creation
|
|
||||||
|
|
||||||
USER=docker
|
|
||||||
|
|
||||||
echo "I: creating docker user"
|
|
||||||
|
|
||||||
addgroup --system --quiet $USER
|
|
||||||
adduser --system \
|
|
||||||
--ingroup $USER \
|
|
||||||
--disabled-login \
|
|
||||||
--shell /bin/false \
|
|
||||||
--no-create-home \
|
|
||||||
$USER
|
|
||||||
|
|
||||||
# ensure that the ubuntu user has the right group
|
|
||||||
adduser ubuntu docker
|
|
Loading…
Reference in new issue