Skip to content

Document docker upload file path workaround#3511

Merged
copybara-service[bot] merged 1 commit intomainfrom
bvandermoon-patch-1
Mar 27, 2026
Merged

Document docker upload file path workaround#3511
copybara-service[bot] merged 1 commit intomainfrom
bvandermoon-patch-1

Conversation

@bvandermoon
Copy link
Collaborator

Description

Saw this error when running upload_maxtext_docker_image CLOUD_IMAGE_NAME=${CLOUD_IMAGE_NAME?}:

ERROR: Found symbolic links with absolute paths in the build context:
./maxtext_venv/bin/python
Docker cannot follow absolute paths outside of the build context, which can cause 'failed to compute cache key' errors.
Please remove these links or convert them to relative paths before building the Docker image.
Alternatively, run the command again from a clean, empty directory to bypass your local file state entirely

Fixed it by adding maxtext_venv/bin/python to a new .dockerignore file. Thanks @SurbhiJainUSC for the fix

Tests

upload_maxtext_docker_image CLOUD_IMAGE_NAME=${CLOUD_IMAGE_NAME?}

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@copybara-service copybara-service bot merged commit 771acbe into main Mar 27, 2026
40 of 41 checks passed
@copybara-service copybara-service bot deleted the bvandermoon-patch-1 branch March 27, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants