kolla/docker/zun/zun-compute/extend_start.sh
Hongbin Lu 0c8d3f0586 Add user 'zun' to group 'docker'
Zun compute needs to access the docker socket for API call.
The socket is owned by 'docker' group and the zun-compute process
is owned by 'zun' user. In order to allow the access, this commit
add zun user to docker group.

Change-Id: Ifa7d399242dddf8d07f8b495b344752131a0f110
2018-10-01 03:57:12 +00:00

6 lines
122 B
Bash

#!/bin/bash
gid=$(stat -c "%g" /var/run/docker.sock)
sudo groupadd --force --gid $gid docker
sudo usermod -aG docker zun