arangodb / arangodb-docker

Docker container for ArangoDB
Apache License 2.0
106 stars 32 forks source link

[Question] Enter docker container #97

Closed Minstel closed 3 years ago

Minstel commented 3 years ago

I want to enter running arango docker container. Tryed the following standard command:

sudo docker exec -it graphdb bash

But received the response:

OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "bash": executable file not found in $PATH: unknown

The same is using /bin/bash. The only option I found working is using arangosh as command, but that is not really what I want to do, as it enters arango shell, not container's filesystem.

So is there a way to do this?

dbenesj commented 3 years ago

Sure, just use sh instead of bash

dothebart commented 3 years ago

exactly. to reduce the container size arangodb comes with only /bin/sh instead of a full blown bash. Its also based on alpine, so if you need the compfort of a bash, please follow i.e. https://www.cyberciti.biz/faq/alpine-linux-install-bash-using-apk-command/

Minstel commented 3 years ago

Great, thanks a lot!