0c8d3f0586
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
6 lines
122 B
Bash
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
|