1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-02 13:53:23 +01:00
bitwarden-server/util/DigitalOceanMarketplace/scripts/01-install-docker
2019-02-21 12:39:02 -05:00

34 lines
814 B
Bash

#!/bin/bash
#
# Scripts in this directory are run during the build process.
# each script will be uploaded to /tmp on your build droplet,
# given execute permissions and run. The cleanup process will
# remove the scripts from your build system after they have run
# if you use the build_image task.
#
#
# Install Docker CE
# ref: https://docs.docker.com/install/linux/docker-ce/ubuntu/
#
apt-get -y update
apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get -y update
apt-get -y install docker-ce docker-ce-cli containerd.io