Skip to content

Commit 3ba14ae

Browse files
committed
Update the docs for running container images
1 parent a68a3e7 commit 3ba14ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

_planetscale/docs/registry.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@ aws --region us-east-1 ecr list-images --profile build --repository-name 'branch
1212
```
1313

1414
If necessary, log into the [`build` profile](https://github.com/planetscale/infra/blob/12ae46f94b7b9ad15b0b1ef00c94d544e590c42f/aws_config#L57-L61) first:
15+
1516
```
1617
aws sso login --profile build
1718
```
19+
20+
### Run images
21+
22+
To run a MySQL container image locally, first log in if needed:
23+
24+
```
25+
aws sso login
26+
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 997601596833.dkr.ecr.us-east-1.amazonaws.com
27+
```
28+
29+
And then run it:
30+
31+
```
32+
docker run -it 997601596833.dkr.ecr.us-east-1.amazonaws.com/branch/mysql-server:8.0.28-ps-sha4567
33+
```

0 commit comments

Comments
 (0)