Closed KabDeveloper closed 4 years ago
Your docker-compose.yml
files aren't working because of the command: bash -c 'cqlsh'
https://docs.docker.com/engine/reference/run/#cmd-default-command-or-options
Essentially our entrypoint will be skipped and go straight to cqlsh
. Just like if you start the image with bash
as the command, the entrypoint will skip initializing the database and you'll have immediate access to bash
in the container
$ docker run -it --rm cassandra bash
root@2c01d55f467d:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 2.5 0.0 20176 3800 pts/0 Ss 14:51 0:00 bash
root 11 0.0 0.0 36072 3292 pts/0 R+ 14:51 0:00 ps aux
But if you do encounter further issues it would most likely be due to the environment Docker is running under; Boot2Docker/Windows and I would suggest trying those resources first https://github.com/boot2docker/boot2docker https://github.com/docker/for-win
I finally was succeeded to make it working
I had to set rpc_address
to 0.0.0.0
I encounter the same problem while the rpc_address
is 0.0.0.0
.
Description
I am trying to launch cassandra container using docker-compose, but stay recieving this error message:
Notice that I get it working well when I use directly this command line:
And then I ssh the container, and using
CQLSH
command normaly.I know it is related to the networking, and I tried everything I was able to without success !
Here is my docker-compose file:
I am using the
network mode: Host
after switching frombridge mode
.Here is my other configuration with
bridge mode
:Unfortunately I get the same error message for both configurations.
Steps to reproduce the issue:
docker run -it --rm --network app-tier cassandra:latest cqlsh --username ca ssandra --password cassandra cassandra-servers
Describe the results you received:
This command:
Result:
or this error when I ssh the container and launch CQLSH command:
Describe the results you expected:
Expect a working Cassandra Server
Version
docker version
:docker info
:docker-compose version
(if applicable):Additional environment details (AWS, VirtualBox, Docker for MAC, physical, etc.):
I am on Windows 7 24bit Using Docker Toolbox