Skip to content

Commit 3f67b55

Browse files
authored
Document docker upload file path workaround
1 parent 5d31ff9 commit 3f67b55

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

docs/build_maxtext.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,16 @@ build_maxtext_docker_image WORKFLOW=post-training
128128

129129
## Upload MaxText Docker Image to Artifact Registry
130130

131-
> **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".
132-
133131
```bash
134132
# Make sure to set `CLOUD_IMAGE_NAME` with your desired image name.
135133
export CLOUD_IMAGE_NAME=<Docker Image Name>
136134
upload_maxtext_docker_image CLOUD_IMAGE_NAME=${CLOUD_IMAGE_NAME?}
137135
```
136+
137+
> **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".
138+
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+
> ```

0 commit comments

Comments
 (0)