heat-coe-templates/fragments/add-centos-to-docker.sh
Lars Kellogg-Stedman b1c36cdd31 refactor config using software config support
this splits the giant user-data script into smaller modules.  this
makes things easier to manage and also permits us to use cloud-config
scripts in addition to shell scripts.
2014-12-30 22:47:10 -05:00

13 lines
350 B
Bash

#!/bin/sh
# Under atomic, we need to make sure the 'docker' group exists in
# /etc/group (because /lib/group cannot be modified by usermod).
if ! grep -q docker /etc/group; then
grep docker /lib/group >> /etc/group
fi
# make centos user a member of the docker group
# (so you can run docker commands as the centos user)
usermod -G docker centos