mongodb - can not connect to docker container mapping port -


i use mongo image in docker, can not connect 20217 port.

docker@default:~$ docker ps

prot info show: 0.0.0.0:20217->20217/tcp, 27017/tcp

but,

gilbertdemacbook-pro:~ gilbert$ lsof -i tcp:20217

there no pid,

gilbertdemacbook-pro:~ gilbert$ docker info

containers: 3 images: 43 server version: 1.9.1 storage driver: aufs  root dir: /mnt/sda1/var/lib/docker/aufs  backing filesystem: extfs  dirs: 50  dirperm1 supported: true execution driver: native-0.2 logging driver: json-file kernel version: 4.1.13-boot2docker operating system: boot2docker 1.9.1 (tcl 6.4.1); master : cef800b - fri nov 20 19:33:59 utc 2015 cpus: 1 total memory: 1.956 gib name: default id: mraz:zg5e:hdmy:ejnq:hfl4:pw6y:axis:6jfl:pfi5:gbay:5smf:nyqr debug mode (server): true  file descriptors: 25  goroutines: 44  system time: 2016-01-27t14:53:52.005531869z  eventslisteners: 0  init sha1:  init path: /usr/local/bin/docker  docker root dir: /mnt/sda1/var/lib/docker username: gilbertgan registry: https://index.docker.io/v1/ labels:  provider=virtualbox 

i found because on mac docker-machine running on vm,so need add vm ip when connect container. ip can show by: docker-machine ls


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -