Hui Zheng
09/22/2021, 12:43 AM- prefect.Docker | Pushing image to the registry...
Does it happen to other people?Hui Zheng
09/22/2021, 12:43 AMprefecthq/prefect:0.14.1-python3.8
code where it gets frozen
flow.register( ... )
my laptop
Apple M1
MacOS Big Sur v 11.6
docker-desktop v 4.0.1
Kevin Kho
Hui Zheng
09/22/2021, 12:47 AMHui Zheng
09/22/2021, 12:48 AMnew Big Sur virtualization.framework
in docker or not?Kevin Kho
Kevin Kho
Hui Zheng
09/22/2021, 12:50 AMAbhishek
09/22/2021, 6:31 AMZach Angell
Hui Zheng
09/22/2021, 4:48 PMdocker stats
shows the memory usage is not high
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
0a0348432035 naughty_ganguly 0.05% 126.7MiB / 3.827GiB 3.23% 82.2kB / 33.9kB 0B / 8.19kB 12
Hui Zheng
09/22/2021, 4:51 PMSuccessfully built 0e190d65e2eb
Successfully tagged <http://us.gcr.io/xxx/xxx/prefect-scheduler/xx_batch:20.06.0|us.gcr.io/xxx/xxx/prefect-scheduler/xx_batch:20.06.0>
[2021-09-22 16:50:17+0000] INFO - prefect.Docker | Pushing image to the registry...
Kevin Kho
docker push
instead?Hui Zheng
09/22/2021, 5:32 PMHui Zheng
09/22/2021, 5:34 PMdocker push
and found the error. it was due to invalid credentials.
which i accidentally changed 2 days ago.Hui Zheng
09/22/2021, 5:34 PMdocker push
throw error
unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: <https://cloud.google.com/container-registry/docs/advanced-authentication>
Kevin Kho
Hui Zheng
09/22/2021, 5:36 PMflow.register( ... )
could propagate the error message, it would be helpfuKevin Kho
Hui Zheng
09/22/2021, 5:38 PMThe push refers to repository [<http://us.gcr.io/xxx/xxx/prefect-scheduler/xxx|us.gcr.io/xxx/xxx/prefect-scheduler/xxx>]
while i forgot in .docker/config.json to have
"credHelpers": {
"<http://us.gcr.io|us.gcr.io>": "gcloud",
Abhishek
09/22/2021, 6:17 PMgcloud auth configure-docker
before pushing the image?
Ref: https://cloud.google.com/container-registry/docs/quickstart#auth
so when i work with ECR (AWS container registry) i usually login to ECR before pushing the imageAbhishek
09/22/2021, 6:18 PMHui Zheng
09/22/2021, 10:39 PM