Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The demo is seemingly not working properly on OS X #496

Closed
born4new opened this issue Feb 16, 2017 · 2 comments
Closed

The demo is seemingly not working properly on OS X #496

born4new opened this issue Feb 16, 2017 · 2 comments

Comments

@born4new
Copy link

born4new commented Feb 16, 2017

Hi guys,

I tried to execute the following command on my OS X:

docker run --net=host -e MON_IP=10.42.2.154 -e CEPH_PUBLIC_NETWORK=10.42.2.0/24 ceph/demo

I keep getting the following error:

creating /etc/ceph/ceph.client.admin.keyring
creating /etc/ceph/ceph.mon.keyring
monmaptool: monmap file /etc/ceph/ceph.monmap
monmaptool: set fsid to b8909362-c3e8-4517-b3d4-80e75101633f
monmaptool: writing epoch 0 to /etc/ceph/ceph.monmap (1 monitors)
creating /tmp/ceph.mon.keyring
importing contents of /etc/ceph/ceph.client.admin.keyring into /tmp/ceph.mon.keyring
importing contents of /etc/ceph/ceph.mon.keyring into /tmp/ceph.mon.keyring
2017-02-16 15:55:42.920790 7f194accf4c0 -1 unable to find any IP address in networks: 10.42.2.0/24

Docker: Version 1.13.1 (15353)
OS: macOS Sierra (10.12.3)

Also, is there a way to launch this demo from a docker network instead of using the host IP address?

Thanks a lot for your help...

@born4new
Copy link
Author

Actually found the solution for launching it inside its own network, I'll add it for future people that might be struggling with this as well:

docker network create --subnet=175.20.0.0/16 mynet123
docker run --net mynet123 --ip 175.20.0.12 -e MON_IP=175.20.0.12 -e CEPH_PUBLIC_NETWORK=175.20.0.0/16 ceph/demo

@zhaomengit
Copy link

It works for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants