Adam
07/28/2020, 1:28 PMDocker(registry_url=...)
I get the following exception: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', BadStatusLine('\x15\x03\x01\x00\x02\x02\n'))
Any ideas why that is? FWIW, I'm using Google Container Registry and I've already authenticated with it (running docker pull <http://gcr.io/etc/etc/myprivateimage|gcr.io/etc/etc/myprivateimage>
works fine). CircleCI does use a 'remote docker' to run such commands so perhaps this command isn't able to connect to it?Zachary Hughes
07/28/2020, 1:36 PMDOCKER_HOST
as discussed in this thread may help you out.
https://prefect-community.slack.com/archives/CL09KU1K7/p1584128047269800Adam
07/28/2020, 1:50 PMZachary Hughes
07/28/2020, 1:51 PMDOCKER_HOST
, are you still seeing the same error, or is it a different one?Adam
07/28/2020, 1:59 PMtls_config
parameter, hopefully that helpsZachary Hughes
07/28/2020, 2:08 PMAdam
07/28/2020, 2:16 PM- setup_remote_docker:
version: 19.03.12
docker_layer_caching: true
And within your code:
tls_config = docker.tls.TLSConfig(
client_cert=(
path.join(environ.get("DOCKER_CERT_PATH"), "cert.pem"),
path.join(environ.get("DOCKER_CERT_PATH"), "key.pem"),
)
)
flow.storage = Docker(
registry_url="<http://gcr.io/xxx/yyy|gcr.io/xxx/yyy>",
base_url=environ.get("DOCKER_HOST"),
tls_config=tls_config,
)
flow.register(project_name="prefect-test-1")
Zachary Hughes
07/28/2020, 2:25 PMquery {
flow (where: {id: {_eq: "YOUR-FLOW-ID-HERE"}}){
id
storage
}
}
and if you want to get it for a flow group, the first result from this query will do the trick for you:
query {
flow (where: {flow_group_id: {_eq: "YOUR-FLOW-GROUP-ID-HERE"}}, order_by: {created: desc}){
id
storage
}
}
Adam
07/28/2020, 2:30 PMZachary Hughes
07/28/2020, 2:32 PMjosh
07/28/2020, 4:53 PMMarvin
07/28/2020, 4:53 PMShawn Marhanka
07/28/2020, 10:52 PMDavid Elliott
09/14/2020, 4:45 PM