Skip to content

[Bug]: builds fail with 'Error: unable to write data to the archive, code 0' #1375

@jdmartin

Description

@jdmartin

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

Reproducing this, for me, is a matter of visiting one of my repos that contains my Dockerfile and Makefile, and running something like container build --no-cache --arch amd64 --tag mydomain.com/yeti:latest --file Dockerfile .; (Sorry, that's very me-specific, which is likely unhelpful...)

Current behavior

Since upgrading to 0.11.0, my ability to build containers seems to have broken (macOS Sequoia, 15.7.5). When I run my build command, I see the error below. The command is this: container build --no-cache --arch amd64 --tag mydomain.com/yeti:latest --file Dockerfile .; (the makefile just polls until container is running, which is that bit above the 'Building AMD64 version...')

I've tried removing each flag one-by-one. I've tried uninstalling, purging directories, and reinstalling. The only thing that resolves this is reverting to 0.10.0.

With full acknowledgment that this might be user error, I thought I'd pass this along. Happy to share any additional details as needed!

Neptune ~/D/F/MechanicalYeti (main)> make
Registering API server with launchd...
Verifying apiserver is running...
Waiting for container system to become fully ready...
Container system is fully ready.
Building AMD64 version...
[+] Building 7.3s (2/3)
 => [resolver] fetching image...docker.io/library/node:lts-slim                                                                                                                                    0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                               0.4s
 => => transferring dockerfile: 213B                                                                                                                                                               0.3s
 => [internal] load .dockerignore                                                                                                                                                                  0.3s
 => => transferring context: 30B                                                                                                                                                                   0.3s
Error: unable to write data to the archive, code 0
make[1]: *** [build-container] Error 1
make: *** [default] Error 2

Expected behavior

Historically, with 0.10.0, I'd see a successfully completed build process.

Environment

- OS: macOS 15.7.5
- Container: Container CLI version 0.11.0

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions