Bug 1093000
| Summary: | Unable to save an image to a tar archive | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Lukas Slebodnik <lslebodn> |
| Component: | docker-io | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 21 | CC: | admiller, alexl, dwalsh, golang-updates, lsm5, mattdm, mgoldman, s, vbatts |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-05-29 11:56:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Lukas Slebodnik
2014-04-30 11:55:52 UTC
This really isn't a bug, I'd suggest you take it up with the upstream docker maintainers. IMHO, /tmp (or, as you point out /var/tmp) is the best place for the temporary images and if you need to create very large images then you need to have enough space in the temporary directory. But your machine running out of space because of a large image isn't a bug. I don't have problem with creating large images. The docker image has already been created. I have problem with exporting docker image to tarball. It is not problem that my machine is running out of space. I have a lot of free space on my disk and I didn't want to store anything on /tmp [root@vm-169 ~]# df -h /root/ Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_root-lv_root 9.5G 4.4G 4.6G 50% / [root@vm-169 ~]# docker save big_image > /root/big_image.tar 2014/04/30 14:33:02 Error: write /tmp/docker-export-638760671/934d868afd0a79629df2cad704cbc1ed9344654625569263a630933d2785de57/layer.tar: no space left on device According to docker help, the image should be streamed to standard output. I would expect it works without any side effect. And if docker cannot limit size of temporary files it will be better to use /var/tmp. /tmp is by default mounted as tmpfs. It was introduced in fedora 18 https://fedoraproject.org/wiki/Features/tmp-on-tmpfs Yes, it can be overridden by administrator, so there is a workaround. But in my opinion, it should work with default settings. And changing temporary directory from /tmp to /var/tmp should be easy. Alex do you have an idea on this? I don't see why we would have to temporarily store it to disk at all. https://github.com/dotcloud/docker/pull/6456 Should fix this issue. Lokesh can you add this patch. Lokesh could you add this pull request to docker-1.0 in rawhide so we can get some testing on it. Fixed in docker-1.1.2 This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. It's already fixed in fedora 21 bash-4.3# grep tmp /etc/sysconfig/docker # docker load and build operations. Default is /var/lib/docker/tmp # DOCKER_TMPDIR=/var/tmp |