Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 2f9c035

Browse files
authored
Fix an issue where the Docker images could not fit in the boot disk (#1153)
This change fixes two issues with disk space for Docker images and containers. 1. Make the container used for formatting the notebooks disk clean itself up when it exits. This wasn't actually causing any issues, but it is good hygiene. 2. Double the size of the boot disk for instances. The default size of 10GB turns out to be just barely too small to fit both the Datalab image and the fluentd image. This caused issues where only the first image pulled would be pulled successfully.
1 parent a2b414e commit 2f9c035

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/cli/commands/create.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
echo "Creating the datalab directory"
5555
mkdir -p ${{MOUNT_DIR}}/datalab
5656
echo "Cloning the repo {0}"
57-
docker run -v "${{MOUNT_DIR}}:/content" \
57+
docker run -v --rm "${{MOUNT_DIR}}:/content" \
5858
--entrypoint "/bin/bash" {0} \
5959
gcloud source repos clone {1} /content/datalab/notebooks
6060
}}
@@ -481,6 +481,7 @@ def run(args, gcloud_compute, gcloud_repos, email='', **kwargs):
481481
user_data_file.name,
482482
manifest_file.name))
483483
cmd.extend([
484+
'--boot-disk-size=20GB',
484485
'--network', _DATALAB_NETWORK,
485486
'--image-family', 'gci-stable',
486487
'--image-project', 'google-containers',

0 commit comments

Comments
 (0)