LoginSignup
17
18

More than 5 years have passed since last update.

VagrantでDockerが動く環境を一撃で作る

Posted at

メモです。

boot2dockerを使わず、
vagrant上に普通にVM立ててDocker使える環境を一撃で用意するコマンドです。
(VMはubuntu14.04)

一撃でインストール

wget https://raw.githubusercontent.com/phusion/baseimage-docker/master/Vagrantfile && vagrant up

確認

vagrant ssh
...

$ docker run busybox echo 'Hello Docker!'
Unable to find image 'busybox:latest' locally
df7546f9f060: Pull complete
ea13149945cb: Pull complete
4986bf8c1536: Pull complete
511136ea3c5a: Already exists
busybox:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.

Status: Downloaded newer image for busybox:latest
Hello Docker!
$


ウェ〜イ

17
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
18