dotfiles/docker-setup/Alpine/alpine-docker.sh
2020-09-11 22:12:49 -05:00

24 lines
No EOL
646 B
Bash
Executable file

#!/bin/bash
###########################################
# Setup Docker in Alpine with this Script #
###########################################
# Adds the community repo
sh -c 'echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/community/" >> /etc/apk/repositories'
# Updates apk to include the new repo we just add
echo "Time to Update"
apk -qq update
# Just as it says, it installs Docker to the Machine
echo "Currently installing Docker"
apk add -qq docker
# This section adds Docker dameon to boot
echo "Enabling Docker at Boot"
rc-update add docker boot
# This starts the Docker daemon
echo "Starting Docker"
service docker start