Public | Automated Build

Last pushed: 2 years ago
Short Description
A Ubuntu Docker image for Vagrant Docker provider.
Full Description


A Ubuntu Docker image for Vagrant Docker provider.

This image is based on official Ubuntu image and includes minimum Vagrant box features.

Supported tags and respective Dockerfile links

Issues and pull-requests are available on GitHub repository.


Write Vagrantfile as following:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.provider(:docker) do |d|
    d.image = "nishidayuya/docker-vagrant-ubuntu:xenial"
    d.has_ssh = true

Enjoy vagrant up, vagrant ssh and so on!

$ vagrant up
Bringing machine 'default' up with 'docker' provider...
==> default: Creating the container...
    default:   Name: try_default_1466614761
    default:  Image: nishidayuya/docker-vagrant-ubuntu:xenial
    default: Volume: /home/yuya/try:/vagrant
    default:   Port:
    default: Container created: 1269dc230f256869
==> default: Starting container...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address:
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
$ vagrant ssh
Welcome to Ubuntu 16.04 LTS (GNU/Linux 3.16.0-4-amd64 x86_64)

 * Documentation:
vagrant@1269dc230f25:~$ sudo apt-get update
Docker Pull Command