what is the correct way to use the existing flyte-...
# ask-the-community
a
what is the correct way to use the existing flyte-sandbox-lite image or (other local image) to register a task to a remote cluster programmatically. The task failed to run in the remote cluster.
Copy code
img = ImageConfig.from_images(
    "<http://cr.flyte.org/flyteorg/flyte-sandbox-lite:sha-4f73dc6994dfeafb9eecd9b17d16d7f9275b577a|cr.flyte.org/flyteorg/flyte-sandbox-lite:sha-4f73dc6994dfeafb9eecd9b17d16d7f9275b577a>",
)

t1 = remote.register_task(
    entity=generate_normal_df,
    serialization_settings=SerializationSettings(image_config=img),
    version="v1.0",
)
I got the following error message
Copy code
[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.
[abdmkkdhj6rvsx6cvkww-n0-0] terminated with exit code (1). Reason [Error]. Message: 
Starting Docker daemon...
Terminated
Timed out while waiting for dockerd to start
.
k
I think using sandbox-lite image here isn’t correct. sandbox-lite image is used for running a flyte cluster in the docker container. You could build a custom image for your task, and this image will only contain the code and python dependencies. Check out this example
104 Views