How to use this box with Vagrant:

Vagrant.configure("2") do |config|
  config.vm.box = "ysbaddaden/alpine64"
  config.vm.box_version = "0.1.0"
end
vagrant init ysbaddaden/alpine64 \
  --box-version 0.1.0
vagrant up

This version was created over 6 years ago.

Alpine Linux 3.3.2 (March 6, 2016)

Minimal Alpine Linux box for vagrant-lxc.

Nothing is installed, except for sudo. The box is ready to be customized.

Shell

Bash isn't installed, thus in order for Vagrant to be capable to execute commands on the box (eg: shell provisioning or halting) you must configure config.ssh.shell to either "sh" or "ash".

Example

The following example showcases how to configure a VM to build packages:

Vagrant.configure(2) do |config|
  config.ssh.shell = "sh"
  config.vm.box = "ysbaddaden/alpine64"

  config.vm.provision "shell", inline: <<-SHELL
    apk update
    apk upgrade
    apk add alpine-sdk
    addgroup vagrant abuild
  SHELL
end

Then:

vagrant up
vagrant ssh -c "cd /vagrant && abuild -r"
1 provider for this version.
  • lxc Hosted by Vagrant Cloud (5.34 MB)