joyrex2001 / kubedock

Kubedock is a minimal implementation of the docker api that will orchestrate containers on a Kubernetes cluster, rather than running containers locally.
MIT License
226 stars 31 forks source link

Issue Title: Error when copying files to containers using kubedock #102

Open ntqp97 opened 1 day ago

ntqp97 commented 1 day ago

Description I am encountering an issue when running tests with Testcontainers while using kubedock. Specifically, an error occurs when trying to copy a file to a container during test setup.

[FAILED] Unexpected error: create container: can't copy /tmp/3234009317/apisix.yaml to container: Error response from daemon: {"message":"pods \"kubedock-n14q3c-apisix-1-bf308844134f\" not found"} { msg: "create container: can't copy /tmp/3234009317/apisix.yaml to container: Error response from daemon: {\"message\":\"pods \\\"kubedock-n14q3c-apisix-1-bf308844134f\\\" not found\"}", ... } occurred In [It] at: /src/testutils/containers/apisix/apisix_test.go:42 This issue arises during the initialization of a container, when attempting to copy the file /tmp/3234009317/apisix.yaml into the container.

joyrex2001 commented 6 hours ago

Might be a permission issue; the user that runs in the container (and is doing the copy) is not allowed to write on that particular location in the container. Maybe you can also share the relevant logs of kubedock in this issue as well.