Skip to content

Instantly share code, notes, and snippets.

@bakkujp
Last active May 21, 2022 18:23
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save bakkujp/cdef0091f25b2a537307ab410809ea81 to your computer and use it in GitHub Desktop.
Save bakkujp/cdef0091f25b2a537307ab410809ea81 to your computer and use it in GitHub Desktop.
How to install Docker on Alpine Linux 3.10

1. Install Alpine on VirtualBox

1.1. Installation

1.2. Setup Alpine Script

1.3. IPv4 DHCP Configuration (If hits network problem)

References

Steps

First run setup-alpine and go on and then you will hit the network problem After that this setup has filled the file /etc/network/interfaces for you. Now do this:

vi /etc/network/interfaces

and In the part of the file that it has written:

iface eth0 inet dhcp

Just add udhcpc_opts -O search (option is letter O, note zero 0) below it like this:

iface eth0 inet dhcp
    udhcpc_opts -O search

Notes:

  • In case 3.6, use udhcpc_opts
  • But 3.10, it might be udhcpc

Then run this:

ifup eth0

If it says its currently up then you need to down it first:

ifdown eth0 && ifup eth0

Then, test by :)

ping google.com

2. Install Docker on Alpine

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