Skip to content

Commit b699bbd

Browse files
committed
Add explicit instructions to not include ./ in .dockerignore
1 parent cd7a1eb commit b699bbd

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

docs/build_maxtext.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,11 @@ upload_maxtext_docker_image CLOUD_IMAGE_NAME=${CLOUD_IMAGE_NAME?}
136136

137137
> **Note:** You will need the [**Artifact Registry Writer**](https://docs.cloud.google.com/artifact-registry/docs/access-control#permissions) role to push Docker images to your project's Artifact Registry and to allow the cluster to pull them during workload execution. If you don't have this permission, contact your project administrator to grant you this role through "Google Cloud Console -> IAM -> Grant access".
138138
139-
> **Note:** If you see the following error, try adding the listed file path to `.dockerignore`:
140-
> ```
141-
> ERROR: Found symbolic links with absolute paths in the build context:
142-
> ./<add_this_value_to_dockerignore>
143-
> ```
139+
## Troubleshooting
140+
141+
1. If you see the following error while building or uploading your Docker image, try adding the listed file path to `.dockerignore`. Do not include the `./` prefix in the `.dockerignore` file:
142+
143+
```bash
144+
ERROR: Found symbolic links with absolute paths in the build context:
145+
./<add_this_value_to_dockerignore>
146+
```

0 commit comments

Comments
 (0)