How can you run a memSQL admin command in Docker in a terminal line? How can you run a memSQL admin command in Docker in a terminal line? docker docker

How can you run a memSQL admin command in Docker in a terminal line?


An updated image was just released to allow you to use memsql-admin commands, so if you pull the latest image now you can run:

docker exec -it memsql-ciab memsql-admin list-nodes

The previous version of the docker-ciab you were running doesn't actually leverage toolbox to manage nodes in that image. This is because for a single host, memsqlctl provides the same functionality with less complexity than toolbox. So you can simply use the command memsqlctl list-nodes in the image to accomplish what you want, e.g.

docker exec -it memsql-ciab memsqlctl list-nodes