Skip to content

Instantly share code, notes, and snippets.

@mikexstudios
Created November 4, 2013 15:47
Show Gist options
  • Save mikexstudios/7304556 to your computer and use it in GitHub Desktop.
Save mikexstudios/7304556 to your computer and use it in GitHub Desktop.
➜ dokku-orig git:(master) ✗ vagrant destroy -f && vagrant up
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
[default] Running cleanup tasks for 'shell' provisioner...
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'raring'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 8080 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Setting hostname...
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /root/dokku
[default] Running provisioner: shell...
[default] Running: inline script
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
git-email git-gui gitk gitweb
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 7540 kB of archives.
After this operation, 17.2 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main liberror-perl all 0.17-1 [23.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main git-man all 1:1.8.1.2-1 [653 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main git amd64 1:1.8.1.2-1 [6863 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 7540 kB in 0s (13.6 MB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 65586 files and directories currently installed.)
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.8.1.2-1_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.8.1.2-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.8.1.2-1) ...
Setting up git (1:1.8.1.2-1) ...
wget -qO /usr/local/bin/sshcommand https://raw.github.com/progrium/sshcommand/master/sshcommand
chmod +x /usr/local/bin/sshcommand
sshcommand create dokku /usr/local/bin/dokku
wget -qO /tmp/pluginhook_0.1.0_amd64.deb https://s3.amazonaws.com/progrium-pluginhook/pluginhook_0.1.0_amd64.deb
dpkg -i /tmp/pluginhook_0.1.0_amd64.deb
Selecting previously unselected package pluginhook.
(Reading database ... 66341 files and directories currently installed.)
Unpacking pluginhook (from .../tmp/pluginhook_0.1.0_amd64.deb) ...
Setting up pluginhook (0.1.0) ...
lsmod | grep aufs || modprobe aufs || apt-get install -y linux-image-extra-`uname -r`
FATAL: Module aufs not found.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
crda iw wireless-regdb
The following NEW packages will be installed:
crda iw linux-image-extra-3.8.0-32-generic wireless-regdb
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 30.6 MB of archives.
After this operation, 129 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main wireless-regdb all 2011.04.28-1ubuntu3 [6164 B]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main crda amd64 1.1.2-1ubuntu2 [15.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring/main iw amd64 3.4-1 [51.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ raring-updates/main linux-image-extra-3.8.0-32-generic amd64 3.8.0-32.47 [30.6 MB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 30.6 MB in 1s (16.2 MB/s)
Selecting previously unselected package wireless-regdb.
(Reading database ... 66344 files and directories currently installed.)
Unpacking wireless-regdb (from .../wireless-regdb_2011.04.28-1ubuntu3_all.deb) ...
Selecting previously unselected package crda.
Unpacking crda (from .../crda_1.1.2-1ubuntu2_amd64.deb) ...
Selecting previously unselected package iw.
Unpacking iw (from .../archives/iw_3.4-1_amd64.deb) ...
Selecting previously unselected package linux-image-extra-3.8.0-32-generic.
Unpacking linux-image-extra-3.8.0-32-generic (from .../linux-image-extra-3.8.0-32-generic_3.8.0-32.47_amd64.deb) ...
Processing triggers for man-db ...
Setting up wireless-regdb (2011.04.28-1ubuntu3) ...
Setting up crda (1.1.2-1ubuntu2) ...
Setting up iw (3.4-1) ...
Setting up linux-image-extra-3.8.0-32-generic (3.8.0-32.47) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-32-generic /boot/vmlinuz-3.8.0-32-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.8.0-32-generic /boot/vmlinuz-3.8.0-32-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-32-generic /boot/vmlinuz-3.8.0-32-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-32-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.8.0-32-generic /boot/vmlinuz-3.8.0-32-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.0-32-generic /boot/vmlinuz-3.8.0-32-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-32-generic
Found initrd image: /boot/initrd.img-3.8.0-32-generic
Found memtest86+ image: /boot/memtest86+.bin
done
egrep -i "^docker" /etc/group || groupadd docker
usermod -aG docker dokku
curl https://get.docker.io/gpg | apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 992 100 992 0 0 2551 0 --:--:-- --:--:-- --:--:-- 5511
OK
echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
apt-get update
Hit http://archive.ubuntu.com raring Release.gpg
Get:1 http://archive.ubuntu.com raring-updates Release.gpg [933 B]
Hit http://archive.ubuntu.com raring Release
Get:2 http://get.docker.io docker Release.gpg [490 B]
Get:3 http://archive.ubuntu.com raring-updates Release [40.8 kB]
Hit http://archive.ubuntu.com raring/main amd64 Packages
Hit http://archive.ubuntu.com raring/restricted amd64 Packages
Get:4 http://get.docker.io docker Release [1522 B]
Hit http://archive.ubuntu.com raring/universe amd64 Packages
Get:5 http://security.ubuntu.com raring-security Release.gpg [933 B]
Hit http://archive.ubuntu.com raring/multiverse amd64 Packages
Hit http://archive.ubuntu.com raring/main Translation-en
Hit http://archive.ubuntu.com raring/multiverse Translation-en
Hit http://archive.ubuntu.com raring/restricted Translation-en
Hit http://archive.ubuntu.com raring/universe Translation-en
Get:6 http://archive.ubuntu.com raring-updates/main amd64 Packages [200 kB]
Get:7 http://security.ubuntu.com raring-security Release [40.8 kB]
Get:8 http://archive.ubuntu.com raring-updates/restricted amd64 Packages [14 B]
Get:9 http://archive.ubuntu.com raring-updates/universe amd64 Packages [158 kB]
Get:10 http://archive.ubuntu.com raring-updates/multiverse amd64 Packages [4614 B]
Get:11 http://get.docker.io docker/main amd64 Packages [1526 B]
Get:12 http://archive.ubuntu.com raring-updates/main Translation-en [96.7 kB]
Hit http://archive.ubuntu.com raring-updates/multiverse Translation-en
Hit http://archive.ubuntu.com raring-updates/restricted Translation-en
Get:13 http://archive.ubuntu.com raring-updates/universe Translation-en [80.5 kB]
Get:14 http://security.ubuntu.com raring-security/main amd64 Packages [128 kB]
Get:15 http://security.ubuntu.com raring-security/restricted amd64 Packages [14 B]
Get:16 http://security.ubuntu.com raring-security/universe amd64 Packages [41.7 kB]
Get:17 http://security.ubuntu.com raring-security/multiverse amd64 Packages [3715 B]
Get:18 http://security.ubuntu.com raring-security/main Translation-en [66.7 kB]
Hit http://security.ubuntu.com raring-security/multiverse Translation-en
Hit http://security.ubuntu.com raring-security/restricted Translation-en
Hit http://security.ubuntu.com raring-security/universe Translation-en
Ign http://get.docker.io docker/main Translation-en
Fetched 867 kB in 3s (228 kB/s)
Reading package lists...
apt-get install -y lxc-docker
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
aufs-tools bridge-utils cgroup-lite debootstrap dnsmasq-base libapparmor1
libcap2-bin liblxc0 libnetfilter-conntrack3 libpam-cap libseccomp1 lxc
lxc-docker-0.6.5 lxc-templates python3-lxc
Suggested packages:
libcap-dev btrfs-tools lvm2 lxctl qemu-user-static
The following NEW packages will be installed:
aufs-tools bridge-utils cgroup-lite debootstrap dnsmasq-base libapparmor1
libcap2-bin liblxc0 libnetfilter-conntrack3 libpam-cap libseccomp1 lxc
lxc-docker lxc-docker-0.6.5 lxc-templates python3-lxc
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 4093 kB of archives.
After this operation, 15.3 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main libapparmor1 amd64 2.8.0-0ubuntu11 [37.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/main libseccomp1 amd64 1.0.1-2 [29.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ raring-updates/universe liblxc0 amd64 0.9.0-0ubuntu3.6 [99.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ raring/main bridge-utils amd64 1.5-6ubuntu1 [32.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ raring/main libnetfilter-conntrack3 amd64 1.0.1-1 [36.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ raring/main dnsmasq-base amd64 2.65-1ubuntu1 [250 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ raring-updates/universe python3-lxc amd64 0.9.0-0ubuntu3.6 [13.7 kB]
Get:8 http://get.docker.io/ubuntu/ docker/main lxc-docker-0.6.5 amd64 0.6.5 [3286 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ raring-updates/universe lxc amd64 0.9.0-0ubuntu3.6 [116 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ raring/universe aufs-tools amd64 1:3.0+20120411-3ubuntu1 [91.8 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ raring/main libcap2-bin amd64 1:2.22-1.2ubuntu2 [18.5 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ raring/main libpam-cap amd64 1:2.22-1.2ubuntu2 [7792 B]
Get:13 http://archive.ubuntu.com/ubuntu/ raring-updates/universe lxc-templates all 0.9.0-0ubuntu3.6 [33.6 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ raring/main cgroup-lite all 1.8 [4148 B]
Get:15 http://archive.ubuntu.com/ubuntu/ raring-updates/main debootstrap all 1.0.46ubuntu1.1 [34.5 kB]
Get:16 http://get.docker.io/ubuntu/ docker/main lxc-docker amd64 0.6.5 [1810 B]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 4093 kB in 0s (4390 kB/s)
Selecting previously unselected package libapparmor1.
(Reading database ... 70064 files and directories currently installed.)
Unpacking libapparmor1 (from .../libapparmor1_2.8.0-0ubuntu11_amd64.deb) ...
Selecting previously unselected package libseccomp1:amd64.
Unpacking libseccomp1:amd64 (from .../libseccomp1_1.0.1-2_amd64.deb) ...
Selecting previously unselected package liblxc0.
Unpacking liblxc0 (from .../liblxc0_0.9.0-0ubuntu3.6_amd64.deb) ...
Selecting previously unselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.5-6ubuntu1_amd64.deb) ...
Selecting previously unselected package libnetfilter-conntrack3:amd64.
Unpacking libnetfilter-conntrack3:amd64 (from .../libnetfilter-conntrack3_1.0.1-1_amd64.deb) ...
Selecting previously unselected package dnsmasq-base.
Unpacking dnsmasq-base (from .../dnsmasq-base_2.65-1ubuntu1_amd64.deb) ...
Selecting previously unselected package python3-lxc.
Unpacking python3-lxc (from .../python3-lxc_0.9.0-0ubuntu3.6_amd64.deb) ...
Selecting previously unselected package lxc.
Unpacking lxc (from .../lxc_0.9.0-0ubuntu3.6_amd64.deb) ...
Selecting previously unselected package aufs-tools.
Unpacking aufs-tools (from .../aufs-tools_1%3a3.0+20120411-3ubuntu1_amd64.deb) ...
Selecting previously unselected package libcap2-bin.
Unpacking libcap2-bin (from .../libcap2-bin_1%3a2.22-1.2ubuntu2_amd64.deb) ...
Selecting previously unselected package libpam-cap:amd64.
Unpacking libpam-cap:amd64 (from .../libpam-cap_1%3a2.22-1.2ubuntu2_amd64.deb) ...
Selecting previously unselected package lxc-templates.
Unpacking lxc-templates (from .../lxc-templates_0.9.0-0ubuntu3.6_all.deb) ...
Selecting previously unselected package cgroup-lite.
Unpacking cgroup-lite (from .../cgroup-lite_1.8_all.deb) ...
Selecting previously unselected package debootstrap.
Unpacking debootstrap (from .../debootstrap_1.0.46ubuntu1.1_all.deb) ...
Selecting previously unselected package lxc-docker-0.6.5.
Unpacking lxc-docker-0.6.5 (from .../lxc-docker-0.6.5_0.6.5_amd64.deb) ...
Selecting previously unselected package lxc-docker.
Unpacking lxc-docker (from .../lxc-docker_0.6.5_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libapparmor1 (2.8.0-0ubuntu11) ...
Setting up libseccomp1:amd64 (1.0.1-2) ...
Setting up liblxc0 (0.9.0-0ubuntu3.6) ...
Setting up bridge-utils (1.5-6ubuntu1) ...
Setting up libnetfilter-conntrack3:amd64 (1.0.1-1) ...
Setting up dnsmasq-base (2.65-1ubuntu1) ...
Setting up python3-lxc (0.9.0-0ubuntu3.6) ...
Setting up lxc (0.9.0-0ubuntu3.6) ...
lxc start/running
Setting up lxc dnsmasq configuration.
Setting up aufs-tools (1:3.0+20120411-3ubuntu1) ...
Setting up libcap2-bin (1:2.22-1.2ubuntu2) ...
Setting up libpam-cap:amd64 (1:2.22-1.2ubuntu2) ...
Setting up cgroup-lite (1.8) ...
cgroup-lite start/running
Setting up debootstrap (1.0.46ubuntu1.1) ...
Processing triggers for ureadahead ...
Setting up lxc-templates (0.9.0-0ubuntu3.6) ...
Setting up lxc-docker-0.6.5 (0.6.5) ...
stop: Unknown instance:
docker start/running, process 13651
Processing triggers for ureadahead ...
Setting up lxc-docker (0.6.5) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
sleep 2 # give docker a moment i guess
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 311M 100 311M 0 0 3612k 0 0:01:28 0:01:28 --:--:-- 3614k
b3ef2ae484a9
cp dokku /usr/local/bin/dokku
mkdir -p /var/lib/dokku/plugins
cp -r plugins/* /var/lib/dokku/plugins
dokku plugins-install
OK
Hit http://archive.ubuntu.com raring Release.gpg
Hit http://archive.ubuntu.com raring-updates Release.gpg
Hit http://archive.ubuntu.com raring Release
Hit http://get.docker.io docker Release.gpg
Hit http://archive.ubuntu.com raring-updates Release
Hit http://security.ubuntu.com raring-security Release.gpg
Hit http://archive.ubuntu.com raring/main amd64 Packages
Hit http://archive.ubuntu.com raring/restricted amd64 Packages
Hit http://get.docker.io docker Release
Hit http://archive.ubuntu.com raring/universe amd64 Packages
Get:1 http://ppa.launchpad.net raring Release.gpg [316 B]
Hit http://archive.ubuntu.com raring/multiverse amd64 Packages
Hit http://archive.ubuntu.com raring/main Translation-en
Hit http://archive.ubuntu.com raring/multiverse Translation-en
Hit http://archive.ubuntu.com raring/restricted Translation-en
Hit http://security.ubuntu.com raring-security Release
Hit http://archive.ubuntu.com raring/universe Translation-en
Hit http://archive.ubuntu.com raring-updates/main amd64 Packages
Hit http://archive.ubuntu.com raring-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com raring-updates/universe amd64 Packages
Hit http://archive.ubuntu.com raring-updates/multiverse amd64 Packages
Get:2 http://ppa.launchpad.net raring Release [9736 B]
Hit http://archive.ubuntu.com raring-updates/main Translation-en
Hit http://archive.ubuntu.com raring-updates/multiverse Translation-en
Hit http://archive.ubuntu.com raring-updates/restricted Translation-en
Hit http://archive.ubuntu.com raring-updates/universe Translation-en
Hit http://get.docker.io docker/main amd64 Packages
Hit http://security.ubuntu.com raring-security/main amd64 Packages
Hit http://security.ubuntu.com raring-security/restricted amd64 Packages
Get:3 http://ppa.launchpad.net raring/main amd64 Packages [4413 B]
Hit http://security.ubuntu.com raring-security/universe amd64 Packages
Hit http://security.ubuntu.com raring-security/multiverse amd64 Packages
Hit http://security.ubuntu.com raring-security/main Translation-en
Hit http://security.ubuntu.com raring-security/multiverse Translation-en
Hit http://security.ubuntu.com raring-security/restricted Translation-en
Ign http://ppa.launchpad.net raring/main Translation-en
Hit http://security.ubuntu.com raring-security/universe Translation-en
Ign http://get.docker.io docker/main Translation-en
Fetched 14.5 kB in 1s (13.8 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
dnsutils is already the newest version.
The following extra packages will be installed:
init-system-helpers libxslt1.1 nginx-common nginx-full
Suggested packages:
fcgiwrap nginx-doc
The following NEW packages will be installed:
init-system-helpers libxslt1.1 nginx nginx-common nginx-full
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 789 kB of archives.
After this operation, 1864 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ raring/main libxslt1.1 amd64 1.1.27-1ubuntu2 [171 kB]
Get:2 http://ppa.launchpad.net/nginx/stable/ubuntu/ raring/main init-system-helpers all 1.7~raring1~ppa1 [10.6 kB]
Get:3 http://ppa.launchpad.net/nginx/stable/ubuntu/ raring/main nginx-common all 1.4.3-2~raring0 [78.4 kB]
Get:4 http://ppa.launchpad.net/nginx/stable/ubuntu/ raring/main nginx-full amd64 1.4.3-2~raring0 [463 kB]
Get:5 http://ppa.launchpad.net/nginx/stable/ubuntu/ raring/main nginx all 1.4.3-2~raring0 [66.4 kB]
Fetched 789 kB in 1s (467 kB/s)
Selecting previously unselected package libxslt1.1:amd64.
(Reading database ... 70388 files and directories currently installed.)
Unpacking libxslt1.1:amd64 (from .../libxslt1.1_1.1.27-1ubuntu2_amd64.deb) ...
Selecting previously unselected package init-system-helpers.
Unpacking init-system-helpers (from .../init-system-helpers_1.7~raring1~ppa1_all.deb) ...
Selecting previously unselected package nginx-common.
Unpacking nginx-common (from .../nginx-common_1.4.3-2~raring0_all.deb) ...
Selecting previously unselected package nginx-full.
Unpacking nginx-full (from .../nginx-full_1.4.3-2~raring0_amd64.deb) ...
Selecting previously unselected package nginx.
Unpacking nginx (from .../nginx_1.4.3-2~raring0_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up libxslt1.1:amd64 (1.1.27-1ubuntu2) ...
Setting up init-system-helpers (1.7~raring1~ppa1) ...
Setting up nginx-common (1.4.3-2~raring0) ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up nginx-full (1.4.3-2~raring0) ...
Setting up nginx (1.4.3-2~raring0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
* Starting nginx nginx
...done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment