mirror of https://github.com/docker/docs.git
Image additions and copy changes.
Signed-off-by: Hollie Teal <hollie@docker.com>
This commit is contained in:
parent
e4ff140fdd
commit
1d1bb2ae45
Binary file not shown.
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 88 KiB |
Binary file not shown.
After Width: | Height: | Size: 244 KiB |
Binary file not shown.
After Width: | Height: | Size: 227 KiB |
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
|
@ -5,25 +5,29 @@ page_keywords: boot2docker, volume, virtualbox
|
||||||
# Getting “no space left on device” Errors with Boot2Docker?
|
# Getting “no space left on device” Errors with Boot2Docker?
|
||||||
|
|
||||||
If you're using Boot2Docker with a large number of images, or the images you're working
|
If you're using Boot2Docker with a large number of images, or the images you're working
|
||||||
with are very large, you might run into trouble if the Boot2Docker VM's volume runs out of
|
with are very large, your pulls might start failing with "no space left on device" errors when
|
||||||
space. The solution is to increase the volume size by first cloning it, then resizing it
|
the Boot2Docker VM's volume runs out of space. The solution is to increase the volume size by
|
||||||
using a disk partitioning tool. We'll use [GParted](http://gparted.sourceforge.net/download.php/index.php)
|
first cloning it, then resizing it using a disk partitioning tool.
|
||||||
|
|
||||||
|
We'll use [GParted](http://gparted.sourceforge.net/download.php/index.php)
|
||||||
since it's a free ISO and works well with VirtualBox.
|
since it's a free ISO and works well with VirtualBox.
|
||||||
|
|
||||||
## 1. Stop Boot2Docker’s VM
|
## 1. Stop Boot2Docker’s VM
|
||||||
|
|
||||||
|
Issue the command to stop the Boot2Docker VM on the command line:
|
||||||
|
|
||||||
$ boot2docker stop
|
$ boot2docker stop
|
||||||
|
|
||||||
Boot2Docker ships with a VMDK image, which can’t be resized by VirtualBox’s native tools. We will instead
|
|
||||||
create a VDI volume and clone the VMDK volume to it.
|
|
||||||
|
|
||||||
## 2. Clone the VMDK image to a VDI image
|
## 2. Clone the VMDK image to a VDI image
|
||||||
|
|
||||||
|
Boot2Docker ships with a VMDK image, which can’t be resized by VirtualBox’s native tools. We will
|
||||||
|
instead create a VDI volume and clone the VMDK volume to it.
|
||||||
|
|
||||||
Using the command line VirtualBox tools, clone the VMDK image to a VDI image:
|
Using the command line VirtualBox tools, clone the VMDK image to a VDI image:
|
||||||
|
|
||||||
$ vboxmanage clonehd /full/path/to/boot2docker-hd.vmdk /full/path/to/<newVDIimage>.vdi -—format VDI -—variant Standard
|
$ vboxmanage clonehd /full/path/to/boot2docker-hd.vmdk /full/path/to/<newVDIimage>.vdi -—format VDI -—variant Standard
|
||||||
|
|
||||||
## 3. Resize the new clone volume
|
## 3. Resize the VDI volume you created
|
||||||
|
|
||||||
Choose a size that will be appropriate for your needs. If you’re spinning up a lot of containers,
|
Choose a size that will be appropriate for your needs. If you’re spinning up a lot of containers,
|
||||||
or your containers are particularly large, larger will be better:
|
or your containers are particularly large, larger will be better:
|
||||||
|
@ -33,21 +37,31 @@ or your containers are particularly large, larger will be better:
|
||||||
## 4. Download a disk partitioning tool ISO
|
## 4. Download a disk partitioning tool ISO
|
||||||
|
|
||||||
To resize the volume, you'll need a disk partitioning tool like [GParted](http://gparted.sourceforge.net/download.php/).
|
To resize the volume, you'll need a disk partitioning tool like [GParted](http://gparted.sourceforge.net/download.php/).
|
||||||
Once you've downloaded the tool, add the ISO to the Boot2Docker VM’s IDE bus. You might need to
|
Once you've downloaded the tool, add the ISO to the Boot2Docker VM’s IDE bus.
|
||||||
create the bus before you can add the ISO.
|
You might need to create the bus before you can add the ISO. **Note:** It's
|
||||||
|
important that the partitioning tool you choose is available as an ISO so that
|
||||||
|
the Boot2Docker VM can be booted with it.
|
||||||
|
|
||||||
<img src="/articles/b2d_volume_images/add_new_controller.png"></br>
|
<table>
|
||||||
<img src="/articles/b2d_volume_images/add_cd.png">
|
<tr>
|
||||||
|
<td><img src="/articles/b2d_volume_images/add_new_controller.png"><br><br></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><img src="/articles/b2d_volume_images/add_cd.png"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
## 5. Add the new VDI image
|
## 5. Add the new VDI image
|
||||||
|
|
||||||
to the Boot2Docker image in VirtualBox.
|
In the settings for the Boot2Docker image in VirtualBox, remove the VMDK image from
|
||||||
|
the SATA contoller and add the VDI image.
|
||||||
|
|
||||||
<img src="/articles/b2d_volume_images/add_volume.png">
|
<img src="/articles/b2d_volume_images/add_volume.png">
|
||||||
|
|
||||||
## 6. Verify the boot order
|
## 6. Verify the boot order
|
||||||
|
|
||||||
In the **System** settings for the Boot2Docker VM, make sure that **CD/DVD** is the at the top of the **Boot Order** list.
|
In the **System** settings for the Boot2Docker VM, make sure that **CD/DVD** is at
|
||||||
|
the top of the **Boot Order** list.
|
||||||
|
|
||||||
<img src="/articles/b2d_volume_images/boot_order.png">
|
<img src="/articles/b2d_volume_images/boot_order.png">
|
||||||
|
|
||||||
|
@ -57,14 +71,23 @@ Manually start the Boot2Docker VM, and the disk partitioning ISO should start up
|
||||||
Using GParted, choose the **GParted Live (default settings)** option. Choose the
|
Using GParted, choose the **GParted Live (default settings)** option. Choose the
|
||||||
default keyboard, language, and XWindows settings, and the GParted tool will start
|
default keyboard, language, and XWindows settings, and the GParted tool will start
|
||||||
up and display the new VDI volume you created. Right click on the VDI and choose
|
up and display the new VDI volume you created. Right click on the VDI and choose
|
||||||
**Resize/Move**. Drag the slider representing the volume to its maximum size, click
|
**Resize/Move**.
|
||||||
**Resize/Move**, and then **Apply**. Quit GParted and shut down the VM. Remove
|
|
||||||
the GParted ISO from the IDE controller for the Boot2Docker VM in VirtualBox.
|
<img src="/articles/b2d_volume_images/gparted.png">
|
||||||
|
|
||||||
|
Drag the slider representing the volume to its maximum size, click **Resize/Move**,
|
||||||
|
and then **Apply**.
|
||||||
|
|
||||||
|
<img src="/articles/b2d_volume_images/gparted2.png">
|
||||||
|
|
||||||
|
Quit GParted and shut down the VM. Remove the GParted ISO from the IDE controller for
|
||||||
|
the Boot2Docker VM in VirtualBox.
|
||||||
|
|
||||||
## 8. Start the Boot2Docker VM
|
## 8. Start the Boot2Docker VM
|
||||||
|
|
||||||
Either directly in VirtualBox or using the command line (`boot2docker start`), start the Boot2Docker
|
Fire up the Boot2Docker VM manually in VirtualBox. The VM should log in automatically, but the credentials are ``docker/tcuser`` if it doesn't. Using the ``df -h`` command, verify that your changes took effect.
|
||||||
VM to make sure the volume changes took effect.
|
|
||||||
|
<img src="/images/b2d_volume_images/verify.png">
|
||||||
|
|
||||||
You’re done!
|
You’re done!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue