You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adam.mausenbaum: Hi all, hope you're having a lovely day. I'm having some trouble with docker storage on CircleCI. Hoping someone can help me debug it. When calling Docker(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: Hi <@U017MFSCG2X>, hope you're having a lovely day as well! I think you're correct about this being related to Circle's remote docker setup. If so, setting DOCKER_HOST as discussed in this thread may help you out.
zachary: Okay, solid. After setting DOCKER_HOST, are you still seeing the same error, or is it a different one?
adam.mausenbaum: I've upgraded the version of Docker to 19.x and I'm now getting an exception about it trying to connect to an HTTPS server using HTTP.
I'm now working on setting tls_config parameter, hopefully that helps
zachary: Great, new errors generally mean progress! Let me know if there's anything I can do to help here.
adam.mausenbaum: So, I think I've managed to get it all fixed 🙂 Is there an easy way in Prefect Cloud to see the latest docker container associated with a flow?
For reference purposes, for anyone else using CircleCI. This is what worked:
Archived from the Prefect Public Slack Community
adam.mausenbaum: Hi all, hope you're having a lovely day. I'm having some trouble with docker storage on CircleCI. Hoping someone can help me debug it. When calling
Docker(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: Hi <@U017MFSCG2X>, hope you're having a lovely day as well! I think you're correct about this being related to Circle's remote docker setup. If so, setting
DOCKER_HOST
as discussed in this thread may help you out.https://prefect-community.slack.com/archives/CL09KU1K7/p1584128047269800
adam.mausenbaum: Thanks <@UN79DLD40>. This thread is indeed on topic! Unfortunately I'm still have an issue after using the DOCKER_HOST env var (FWIW, that seems to now be natively supported by prefect: https://github.com/PrefectHQ/prefect/blob/master/src/prefect/environments/storage/docker.py#L136)
zachary: Okay, solid. After setting
DOCKER_HOST
, are you still seeing the same error, or is it a different one?adam.mausenbaum: I've upgraded the version of Docker to 19.x and I'm now getting an exception about it trying to connect to an HTTPS server using HTTP.
I'm now working on setting
tls_config
parameter, hopefully that helpszachary: Great, new errors generally mean progress! Let me know if there's anything I can do to help here.
adam.mausenbaum: So, I think I've managed to get it all fixed 🙂 Is there an easy way in Prefect Cloud to see the latest docker container associated with a flow?
For reference purposes, for anyone else using CircleCI. This is what worked:
In
.circleci/config.yaml
:And within your code:
zachary: Awesome! If you want to find storage information about a specific flow, you can run the following query:
and if you want to get it for a flow group, the first result from this query will do the trick for you:
adam.mausenbaum: Brilliant! Thanks <@UN79DLD40> 😄
zachary: You got it! Let us know if there's anything else we can do to help.
josh: <@ULVA73B9P> archive “Docker storage in CircleCI using TLS”
Original thread can be found here.
The text was updated successfully, but these errors were encountered: