Add note for running out of disk space in /var/lib/docker to README.md (#2758)

This commit is contained in:
randygaulmsft 2019-04-10 00:02:57 -07:00 committed by Joe LeVeque
parent d6cf075ca5
commit 3add5d46e4

View File

@ -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.