echo "Adding user to group 'docker'"
sudo groupadd -f docker
sudo usermod -aG docker $USER
- echo "... Docker CE installation done"
sleep 2
sudo service docker restart
echo "... restarted Docker service"
+ sg docker -c "docker version" || FATAL "Docker installation failed"
+ echo "... Docker CE installation done"
+ return 0
}
function install_docker_compose() {
sudo snap install juju --classic
sudo dpkg-reconfigure -p medium lxd
sg lxd -c "juju bootstrap localhost osm"
+ [ $(juju status |grep "osm" |wc -l) -eq 1 ] || FATAL "Juju installation failed"
echo "Finished installation of juju"
}