Running CLI inside Docker container

Hi everyone.
I’m trying to access the CLI inside a docker container. I’ve read this but I think i’m not understanding it.
After docker exec -it container_ID bash how do I access the CLI?? entering influx or /usr/local/bin/influx inside the container only displays CLI help, and i need it to be interactive.
Thank you in advance.

@caraboy if you’re seeing help text when running influx, it means you’re running v2 of InfluxDB. The REPL was removed in that version, so if you need a REPL you’ll need to downgrade to influxdb:1.8 when running the container.

hallo @caraboy

$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
03ceae236ae6 influxdb “/entrypoint.sh infl…” 7 days ago Up 7 days 0.0.0.0:8086->8086/tcp dck_influxdb

$ docker container exec -i -t dck_influxdb influx query ‘from(bucket:“ccc”) |> range(start:-1d) |> drop(columns:["_start", “_stop”])’ --skip-verify --raw | tail -n10

below is how you access from cointaner, but i do not like it as loosing history and various

$ docker container exec -i -t dck_influxdb /bin/bash
root@03ceae236ae6:/# influx --help
Influx Client

Usage:
influx [command]

have fun, pavel

Thank’s didn’t know.