如何允许所有系统用户(旧的和将来创建的)启动 docker 镜像并构建它们?

如何允许所有系统用户(旧的和将来创建的)启动 docker 镜像并构建它们?

如何允许所有系统用户(旧的和将来创建的)启动 docker 镜像并构建它们?目前我只看到每个用户添加到docker组,这非常不方便...

答案1

参见/etc/adduser.conf添加默认用户组:

# Set this if you want the --add_extra_groups option to adduser to add
# new users to other groups.
# This is the list of groups that new non-system users will be added to
# Default:
#EXTRA_GROUPS="dialout cdrom floppy audio video plugdev users"

# If ADD_EXTRA_GROUPS is set to something non-zero, the EXTRA_GROUPS
# option above will be default behavior for adding new, non-system users
#ADD_EXTRA_GROUPS=1

相关内容