Skip to content

[Bug]: buildkit container loose sync when tgz archive #1143

@m-emelchenkov

Description

@m-emelchenkov

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

  1. container stop buildkit; container rm buildkit.
  2. cd Tools; ./run.sh.
  3. edit Dockerfile.sh, change "Hello World" to "Hello World 2".
  4. ./run.sh.

After the second run, instead of "Hello World 2" output you'll get "Hello World". This is because fssync breaks in buildkit container. It never updates files anymore. I tried different archives but can't reproduce it nowhere except the one attached.

Interestingly, my superpower is finding bugs, and this is literally the first docker image I've ever built on Apple Containers, and it took me a whole day to figure out the cause and create this bug report.

It's fun that I can't upload archive here, "Failed to upload". So here is a link to Google Driver: https://drive.google.com/file/d/1AzUpGAiK2UETB6YaWnt-TbbpN9V3hee9/view?usp=share_link

Current behavior

Does not sync filesystem inside buildkit container.

Expected behavior

Should work flawlessly like Podman and Docker.

Environment

- OS: Tahoe 26.2
- Xcode: N/A
- Container: 0.8.0

Relevant log output

N/A

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions