cool-pizza-4590
07/26/2023, 3:04 PMImageSpec
while using the local registry, is this possible? At the moment the following code is failing.
pyflyte run --remote workflow.py wf
workflow.py
pandas_image_spec = ImageSpec(
base_image="<http://ghcr.io/flyteorg/flytekit:py3.8-1.6.2|ghcr.io/flyteorg/flytekit:py3.8-1.6.2>",
packages=["pandas", "numpy"],
python_version="3.9",
apt_packages=["git"],
env={"Debug": "True"},
registry = "localhost:30000/flyte-intro"
)
@task(container_image=pandas_image_spec)
def ...
@workflow
def wf()
...
Failure:
Failed with Unknown Exception <class 'Exception'> Reason: failed to run command envd build --path /var/folders/c4/2z5t6zdj7h78h29kp4hxg5q40000gp/T/flyte-aq9jgcop/sandbox/local_flytekit/a859d0330bbdf3e6341e9bf31303cf00 --platform linux/amd64 --output type=image,name=localhost:30000/flyte-intro/flytekit:H_w_f4H7tXZwqxvwThE8Mw..,push=true with error b'error: failed to do request: Head "<http://localhost:30000/v2/flyte-intro/flytekit/blobs/sha256:4e92f25a64ec360c0e7a8c571638cbee3718563966364ee745d715ff0902a51b>": dial tcp 127.0.0.1:30000: connect: connection refused\n'
some-grass-84903
07/26/2023, 3:42 PMcool-pizza-4590
07/26/2023, 3:56 PMsome-grass-84903
07/26/2023, 4:05 PMrefined-doctor-1380
07/26/2023, 4:40 PMls -l /var/run/docker.sock
refined-doctor-1380
07/26/2023, 4:41 PMrefined-doctor-1380
07/26/2023, 4:44 PMsrw-rw-rw- 1 root docker 0 Jul 19 01:54 /var/run/docker.sock
Make sure the permission looks like the above.
if not, run following to update the permission.
sudo chmod 664 /var/run/docker.sock
Then you should be fine, if not you may need to restart your docker daemon.
In my case, sudo systemctl restart docker
Hope this helps.glamorous-carpet-83516
07/26/2023, 6:58 PMglamorous-carpet-83516
07/26/2023, 7:00 PM