How to use this box with Vagrant:

Vagrant.configure("2") do |config| = "ailispaw/barge"
  config.vm.box_version = "2.12.1"
vagrant init ailispaw/barge \
  --box-version 2.12.1
vagrant up

This version was created over 5 years ago.

Barge Vagrant Box

Barge is a lightweight Linux distribution built with Buildroot specifically to run Docker containers.


  • Built with Buildroot 2019.02.1 with Linux kernel v4.14.111 and glibc.
  • Docker v1.10.3 (~ latest version)
  • Support NFS synced folder
  • Support VirtualBox Shared Folder (VirtualBox only) with VirtualBox Guest Addition v6.0.4
  • Support Docker provisioner
  • Disable TLS of Docker for simplicity
  • Expose and forward the official IANA registered Docker port 2375
  • dumb-init binary is built-in /usr/bin
  • pkg command is built-in. You can install individual packages from Buildroot.
  • Enable to switch between Docker versions
  • 40 GB persistent disk
  • 13.8 MB


Vagrant up

$ vagrant box add ailispaw/barge
$ vagrant init -m ailispaw/barge
$ vagrant up


# A dummy plugin for Barge to set hostname and network correctly at the very first `vagrant up`
module VagrantPlugins
  module GuestLinux
    class Plugin < Vagrant.plugin("2")
      guest_capability("linux", "change_host_name") { Cap::ChangeHostName }
      guest_capability("linux", "configure_networks") { Cap::ConfigureNetworks }

Vagrant.configure(2) do |config|
  config.vm.define "barge" = "ailispaw/barge"

  config.vm.synced_folder ".", "/vagrant"

  # for NFS synced folder
  # :private_network, ip: ""
  # config.vm.synced_folder ".", "/vagrant", type: "nfs",
  #   mount_options: ["nolock", "vers=3", "udp", "noatime", "actimeo=1"]

  # for RSync synced folder
  # config.vm.synced_folder ".", "/vagrant", type: "rsync",
  #   rsync__args: ["--verbose", "--archive", "--delete", "--copy-links"]

  config.vm.provision :docker do |d|
    d.pull_images "busybox" "simple-echo",
      image: "busybox",
      args: "-p 8080:8080 -v /usr/bin/dumb-init:/dumb-init:ro --entrypoint=/dumb-init",
      cmd: "nc -p 8080 -l -l -e echo hello world!"
  end :forwarded_port, guest: 8080, host: 8080
1 provider for this version.
  • virtualbox
    unknown Externally hosted (