Skip to content

Instantly share code, notes, and snippets.

@loeschzwerg
Last active April 15, 2020 15:05
Show Gist options
  • Save loeschzwerg/b9a2320768863a0ea4fdc6e5eb1e3116 to your computer and use it in GitHub Desktop.
Save loeschzwerg/b9a2320768863a0ea4fdc6e5eb1e3116 to your computer and use it in GitHub Desktop.
Install docker on Alpine Linux

Install Docker on Alpine Linux

Preliminaries

Open /etc/apk/repositories and uncomment (delete #) the second line, which should then look somehow like

/media/mmcblk0p1/apks
http://.../alpine/v3.11/main
http://.../alpine/v3.11/community
#http://.../alpine/edge/main
...

Install

Docker is in the community branch, so we need that unquoted. Now you can install and start docker (on boot)

apk add docker
service docker start
rc-update add docker boot

Don't forget to lbu commit

Check functionality

docker run hello-world

It tells you if that works. If so, have fun using docker now ;)

Debugging

If you run into issues, commently x509: certificate has expired or is not yet valid, you will have to work on your ntpd. setup-ntp, followed by lbu commit and reboot might resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment