From a760defe3a61e69cdd676f032aa1a40a5ae42c86 Mon Sep 17 00:00:00 2001 From: randygaulmsft <48103665+randygaulmsft@users.noreply.github.com> Date: Tue, 9 Apr 2019 10:46:11 -0700 Subject: [PATCH 1/4] Add note for running out of disk space in /var/lib/docker This happened to be me during the stretch phase of the `make all`, as the scripts were unable to tar a large folder into `var/lib/docker`, since the default drive `/var/lib/docker` resided upon did not have much empty disk space. I had to move the folder to a much larger drive to continue buildout. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f4c4260c9179..e86e0dc1ce00 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ To build SONiC installer image and docker images, run the following commands: **NOTE**: - Recommend reserving 50G free space to build one platform. +- It is possible to run into errors where Docker's `/var/lib/docker` workspace folder can sit on a drive without enough empty space to do work (for example, untaring a large tar file). [Here is a link](https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux) with information for moving the `var/lib/docker` folder to a drive with more disk space, as a workaround solution. - Use `http_proxy=[your_proxy] https_proxy=[your_proxy] make` to enable http(s) proxy in the build process. - Add your user account to `docker` group and use your user account to make. `root` or `sudo` are not supported. From d3c0c51e09589741ab0810075bada3e33338f8fe Mon Sep 17 00:00:00 2001 From: randygaulmsft <48103665+randygaulmsft@users.noreply.github.com> Date: Tue, 9 Apr 2019 11:05:09 -0700 Subject: [PATCH 2/4] Added example error message, fixed a typo --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e86e0dc1ce00..296b9209bc2f 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,8 @@ To build SONiC installer image and docker images, run the following commands: **NOTE**: - Recommend reserving 50G free space to build one platform. -- It is possible to run into errors where Docker's `/var/lib/docker` workspace folder can sit on a drive without enough empty space to do work (for example, untaring a large tar file). [Here is a link](https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux) with information for moving the `var/lib/docker` folder to a drive with more disk space, as a workaround solution. +- It is possible to run into errors where Docker's `/var/lib/docker` workspace folder can sit on a drive without enough empty space to do work (for example, untarring a large tar file). [Here is a link](https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux) with information for moving the `var/lib/docker` folder to a drive with more disk space, as a workaround solution. One of these error messages can look something like: + - `/usr/bin/tar: ./datadrive/sonic-build-image/: Cannot write: No space left on device`. - Use `http_proxy=[your_proxy] https_proxy=[your_proxy] make` to enable http(s) proxy in the build process. - Add your user account to `docker` group and use your user account to make. `root` or `sudo` are not supported. From 16b8c7f9f107bde961d7068af0ca3ca0dddb3ccb Mon Sep 17 00:00:00 2001 From: randygaulmsft <48103665+randygaulmsft@users.noreply.github.com> Date: Tue, 9 Apr 2019 11:17:33 -0700 Subject: [PATCH 3/4] Less words. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 296b9209bc2f..00f1a64c0159 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,8 @@ To build SONiC installer image and docker images, run the following commands: **NOTE**: - Recommend reserving 50G free space to build one platform. -- It is possible to run into errors where Docker's `/var/lib/docker` workspace folder can sit on a drive without enough empty space to do work (for example, untarring a large tar file). [Here is a link](https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux) with information for moving the `var/lib/docker` folder to a drive with more disk space, as a workaround solution. One of these error messages can look something like: - - `/usr/bin/tar: ./datadrive/sonic-build-image/: Cannot write: No space left on device`. +- It is possible to run into errors where Docker's `/var/lib/docker` workspace folder can sit on a drive without enough empty space to do work. [Here is a link](https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux) with information for a workaround. One of these error messages can look something like: + - `/usr/bin/tar: ./datadrive/sonic-buildimage/: Cannot write: No space left on device`. - Use `http_proxy=[your_proxy] https_proxy=[your_proxy] make` to enable http(s) proxy in the build process. - Add your user account to `docker` group and use your user account to make. `root` or `sudo` are not supported. From 21ad6ce2ea2349e1465cbe4604ef21d07e20977e Mon Sep 17 00:00:00 2001 From: randygaulmsft <48103665+randygaulmsft@users.noreply.github.com> Date: Tue, 9 Apr 2019 12:08:01 -0700 Subject: [PATCH 4/4] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 00f1a64c0159..84d08bd664a5 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,11 @@ To build SONiC installer image and docker images, run the following commands: **NOTE**: - Recommend reserving 50G free space to build one platform. -- It is possible to run into errors where Docker's `/var/lib/docker` workspace folder can sit on a drive without enough empty space to do work. [Here is a link](https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux) with information for a workaround. One of these error messages can look something like: - - `/usr/bin/tar: ./datadrive/sonic-buildimage/: Cannot write: No space left on device`. +- If Docker's workspace folder, `/var/lib/docker`, resides on a partition without sufficient free space, you may encounter an error like the following during a Docker container build job: + + `/usr/bin/tar: /path/to/sonic-buildimage/: Cannot write: No space left on device` + + The solution is to [move the directory](https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux) to a partition with more free space. - Use `http_proxy=[your_proxy] https_proxy=[your_proxy] make` to enable http(s) proxy in the build process. - Add your user account to `docker` group and use your user account to make. `root` or `sudo` are not supported.