- Follow the original instructions at
- See more at
- Run
$ setup-alpine
and follow the instructions to setup dns, proxy, timezone, ... - When you go to the step setting up disk, please set
sda
to make a boot from vdisk. If you don't set this, Alpine VM not saving after rebooting. (Ref: https://unix.stackexchange.com/questions/471039/alpine-vm-not-saving-after-rebooting)
- https://wiki.alpinelinux.org/wiki/Configure_Networking
- https://unix.stackexchange.com/questions/322514/internet-in-alpine-virtualbox-in-macos
- https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-interfaces
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
, useudhcpc_opts
- But
3.10
, it might beudhcpc
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
- https://docs.genesys.com/Documentation/System/8.5.x/DDG/InstallationofDockeronAlpineLinux
- https://wiki.alpinelinux.org/wiki/Docker
- Note:
In case Docker apk package for alpine linux has an unresolved dependency to libseccomp, ...
- Solution 1
Add only http://dl-cdn.alpinelinux.org/alpine/edge/main and http://dl-cdn.alpinelinux.org/alpine/edge/community into
/etc/apk/repositories
- Solution 2
Run
Or run$ apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/edge/main libseccomp $ apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/edge/community docker
$ apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main --repository http://dl-cdn.alpinelinux.org/alpine/edge/community docker
- See more at https://forums.docker.com/t/docker-apk-package-for-alpine-linux-has-an-unresolved-dependency-to-libseccomp/9604
- Solution 1
Add only http://dl-cdn.alpinelinux.org/alpine/edge/main and http://dl-cdn.alpinelinux.org/alpine/edge/community into
Thanks it's work ok