Browse code

Added changes brought up in PR discussion.

Signed-off-by: Hollie Teal <hollie@docker.com>

Hollie Teal authored on 2014/08/29 03:04:53
Showing 1 changed files
... ...
@@ -2,15 +2,17 @@ page_title: Resizing a Boot2Docker Volume
2 2
 page_description: Resizing a Boot2Docker Volume in VirtualBox with GParted
3 3
 page_keywords: boot2docker, volume, virtualbox
4 4
 
5
-# Getting “no space left on device” Errors with Boot2Docker?
5
+# Getting “no space left on device” errors with Boot2Docker?
6 6
 
7
-If you're using Boot2Docker with a large number of images, or the images you're working 
8
-with are very large, your pulls might start failing with "no space left on device" errors when
9
-the Boot2Docker VM's volume fills up. The solution is to increase the volume size by 
10
-first cloning it, then resizing it using a disk partitioning tool. 
7
+If you're using Boot2Docker with a large number of images, or the images you're
8
+working with are very large, your pulls might start failing with "no space left 
9
+on device" errors when the Boot2Docker volume fills up. The solution is to 
10
+increase the volume size by first cloning it, then resizing it using a disk 
11
+partitioning tool. 
11 12
 
12
-We recommend [GParted](http://gparted.sourceforge.net/download.php/index.php)-- the ISO 
13
-is a free download and works well with VirtualBox.
13
+We recommend [GParted](http://gparted.sourceforge.net/download.php/index.php).
14
+The tool comes as a bootable ISO, is a free download, and works well with 
15
+VirtualBox.
14 16
 
15 17
 ## 1. Stop Boot2Docker
16 18
 
... ...
@@ -20,8 +22,9 @@ Issue the command to stop the Boot2Docker VM on the command line:
20 20
 
21 21
 ## 2. Clone the VMDK image to a VDI image
22 22
 
23
-Boot2Docker ships with a VMDK image, which can’t be resized by VirtualBox’s native tools. We will 
24
-instead create a VDI volume and clone the VMDK volume to it. 
23
+Boot2Docker ships with a VMDK image, which can’t be resized by VirtualBox’s 
24
+native tools. We will instead create a VDI volume and clone the VMDK volume to 
25
+it. 
25 26
 
26 27
 Using the command line VirtualBox tools, clone the VMDK image to a VDI image:
27 28
 
... ...
@@ -29,8 +32,9 @@ Using the command line VirtualBox tools, clone the VMDK image to a VDI image:
29 29
 
30 30
 ## 3. Resize the VDI volume
31 31
 
32
-Choose a size that will be appropriate for your needs. If you’re spinning up a lot of containers, 
33
-or your containers are particularly large, larger will be better:
32
+Choose a size that will be appropriate for your needs. If you’re spinning up a 
33
+lot of containers, or your containers are particularly large, larger will be 
34
+better:
34 35
 
35 36
     `$ vboxmanage modifyhd /full/path/to/<newVDIimage>.vdi —-resize <size in MB>`
36 37
 
... ...
@@ -38,9 +42,11 @@ or your containers are particularly large, larger will be better:
38 38
 
39 39
 To resize the volume, we'll use [GParted](http://gparted.sourceforge.net/download.php/). 
40 40
 Once you've downloaded the tool, add the ISO to the Boot2Docker VM’s IDE bus. 
41
-You might need to create the bus before you can add the ISO. **Note:** It's 
42
-important that you choose a partitioning tool that is available as an ISO so that 
43
-the Boot2Docker VM can be booted with it.
41
+You might need to create the bus before you can add the ISO. 
42
+
43
+**Note:** 
44
+It's important that you choose a partitioning tool that is available as an ISO so 
45
+that the Boot2Docker VM can be booted with it.
44 46
 
45 47
 <table>
46 48
 	<tr>
... ...
@@ -53,41 +59,41 @@ the Boot2Docker VM can be booted with it.
53 53
 
54 54
 ## 5. Add the new VDI image 
55 55
 
56
-In the settings for the Boot2Docker image in VirtualBox, remove the VMDK image from 
57
-the SATA contoller and add the VDI image.
56
+In the settings for the Boot2Docker image in VirtualBox, remove the VMDK image 
57
+from the SATA contoller and add the VDI image.
58 58
 
59 59
 <img src="/articles/b2d_volume_images/add_volume.png">
60 60
 
61 61
 ## 6. Verify the boot order
62 62
 
63
-In the **System** settings for the Boot2Docker VM, make sure that **CD/DVD** is at 
64
-the top of the **Boot Order** list.
63
+In the **System** settings for the Boot2Docker VM, make sure that **CD/DVD** is 
64
+at the top of the **Boot Order** list.
65 65
 
66 66
 <img src="/articles/b2d_volume_images/boot_order.png">
67 67
 
68 68
 ## 7. Boot to the disk partitioning ISO
69 69
 
70
-Manually start the Boot2Docker VM in VirtualBox, and the disk partitioning ISO should start up. 
71
-Using GParted, choose the **GParted Live (default settings)** option. Choose the 
72
-default keyboard, language, and XWindows settings, and the GParted tool will start 
73
-up and display the VDI volume you created. Right click on the VDI and choose 
74
-**Resize/Move**. 
70
+Manually start the Boot2Docker VM in VirtualBox, and the disk partitioning ISO 
71
+should start up. Using GParted, choose the **GParted Live (default settings)** 
72
+option. Choose the default keyboard, language, and XWindows settings, and the 
73
+GParted tool will start up and display the VDI volume you created. Right click 
74
+on the VDI and choose **Resize/Move**. 
75 75
 
76 76
 <img src="/articles/b2d_volume_images/gparted.png">
77 77
 
78
-Drag the slider representing the volume to the maximum available size, click **Resize/Move**, 
79
-and then **Apply**. 
78
+Drag the slider representing the volume to the maximum available size, click 
79
+**Resize/Move**, and then **Apply**. 
80 80
 
81 81
 <img src="/articles/b2d_volume_images/gparted2.png">
82 82
 
83
-Quit GParted and shut down the VM. Remove the GParted ISO from the IDE controller for 
84
-the Boot2Docker VM in VirtualBox.
83
+Quit GParted and shut down the VM. Remove the GParted ISO from the IDE controller 
84
+for the Boot2Docker VM in VirtualBox.
85 85
 
86 86
 ## 8. Start the Boot2Docker VM 
87 87
 
88
-Fire up the Boot2Docker VM manually in VirtualBox. The VM should log in automatically, but 
89
-if is doesn't, the credentials are `docker/tcuser`. Using the `df -h` command, verify 
90
-that your changes took effect.
88
+Fire up the Boot2Docker VM manually in VirtualBox. The VM should log in 
89
+automatically, but if it doesn't, the credentials are `docker/tcuser`. Using 
90
+the `df -h` command, verify that your changes took effect.
91 91
 
92 92
 <img src="/articles/b2d_volume_images/verify.png">
93 93