Skip to content

Commit

Permalink
Add note for running out of disk space in /var/lib/docker to README.md (
Browse files Browse the repository at this point in the history
  • Loading branch information
randygaulmsft authored and jleveque committed Apr 10, 2019
1 parent d6cf075 commit 3add5d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ To build SONiC installer image and docker images, run the following commands:
**NOTE**:

- Recommend reserving 50G free space to build one platform.
- 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/<some_file>: 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.

Expand Down

0 comments on commit 3add5d4

Please sign in to comment.