add commands to install docker alpine

This commit is contained in:
Kishan Takoordyal 2021-02-12 11:11:05 +04:00
parent e58f51703c
commit 5f8849b0fa
No known key found for this signature in database
GPG Key ID: 304DF64F0804D6A1
2 changed files with 12 additions and 8 deletions

12
run-docker-alpine.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
apk update
apk add docker docker-compose nano
service docker start
rc-update add docker
docker run hello-world
docker-compose down
docker-compose up -d --build

View File

@ -1,8 +0,0 @@
#!/bin/sh
curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose down
docker-compose up -d --build