code-server: docker initial release

This commit is contained in:
aptalca
2020-02-08 20:34:28 -05:00
parent ca2c0ce48e
commit affeb7e7cf
7 changed files with 51 additions and 71 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/with-contenv bash
echo "**** installing docker environment ****"
if ! dpkg -l | grep gnupg > /dev/null; then
apt-get update && apt-get install -y gnupg
fi
[[ ! -f "/etc/apt/sources.list.d/docker-ce.list" ]] && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
source /etc/os-release && \
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $UBUNTU_CODENAME stable" > /etc/apt/sources.list.d/docker-ce.list
apt-get update && apt-get install -y --no-install-recommends \
docker-ce
usermod -aG docker abc