Matheus Moreno03/25/2022, 8:06 PM
from the container, but I can't build images, and I think the problem is on the sandbox side, since I can't do that even on my host machine. I get the error:
This is the configuration for the sandbox. What am I missing?
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "docker": executable file not found in $PATH: unknown
services: flyte-sandbox: image: <http://cr.flyte.org/flyteorg/flyte-sandbox:latest|cr.flyte.org/flyteorg/flyte-sandbox:latest> container_name: flyte-sandbox privileged: true volumes: - ..:/usr/src # The docker-compose file is inside a sandbox/ dir ports: - "30081:30081" # Console at <http://localhost:30081/console> - "30084:30084" - "30088:30088"
Yuvraj03/26/2022, 11:12 AM
tag is old and deprecated, We don’t publish new images with tag
, In past it represent non dind sandbox, Now we only publish DIND images check here https://github.com/flyteorg/flyte/pkgs/container/flyte-sandbox
Matheus Moreno03/28/2022, 4:06 PM
and tried to configure the Docker Compose file based on the
flytectl sandbox start
result. My questions: • The
files exist so I can use kubectl on the sandbox, right? Is it possible to manually generate them, i.e. without
? • Do I need to mount the volume on
flyte sandbox start
for the system to work? This kinda ties in with the previous question.
Yuvraj03/28/2022, 6:18 PM
Matheus Moreno03/28/2022, 10:11 PM
My only problem now is making the
services: sandbox: image: <http://cr.flyte.org/flyteorg/flyte-sandbox:dind|cr.flyte.org/flyteorg/flyte-sandbox:dind> container_name: flyte-sandbox privileged: true volumes: - ..:/root - sandbox-config:/etc/rancher # entrypoint: sh -c 'chmod -R u+rwX,go+rX,go-w /etc/rancher && tini flyte-entrypoint.sh' ports: - "30081:30081" # Console at <http://localhost:30081/console> - "30082:30082" - "30084:30084" - "30086:30086" - "30087:30087" - "30088:30088"
file accessible to my user container, since it is running as a non-root user, and the k3s file is owned by root. But it seems that the only limitation this causes is that I cannot send
commands to the sandbox, and that is not a huge problem. Thank you for your help!
Yuvraj03/29/2022, 5:12 AM
docker exec -it flyte-sandbox -- k3s kubectl get pods -n flyte
Matheus Moreno03/29/2022, 5:29 PM