Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dragam@USDockerVM:~$ IRE> docker --version
- Docker version 18.09.0, build 4d60db4
- docker pull mongo.
- docker run --name tom-mongo -d mongo:latest
- docker run -it --link tom-mongo:mongo --rm mongo mongo --host mongo test
- > use local
- switched to db local
- > show collections
- startup_log
- > db.startup_log.find().pretty()
- produces 1 record with server startup details - time &c... no problems
- dragam@USDockerVM:/$ IRE> docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 33c58af3862e mongo "docker-entrypoint.sā¦" 2 minutes ago Up 2 minutes 27017/tcp agitated_hypatia
- c39d4ceff690 mongo:latest "docker-entrypoint.sā¦" 41 minutes ago Up 41 minutes 27017/tcp tom-mongo
- dragam@USDockerVM:/$ IRE> ps -ef | grep mongo
- 999 13490 13469 0 12:42 ? 00:00:05 mongod --bind_ip_all
- dragam 17466 13242 0 13:20 pts/1 00:00:00 docker run -it --link tom-mongo:mongo --rm mongo mongo --host mongo test
- 999 17535 17513 0 13:20 pts/0 00:00:00 mongo --host mongo test
- dragam 18021 2487 0 13:24 pts/0 00:00:00 grep --color=auto mongo
- mongo mongodb://mongo:mongo@host:xxx.yyy.zzz.aaa/tom-mongo?ssl=true
- mongo xxx.yyy.zzz.aaa/tom-mongo
- dragam@USDockerVM:~$ IRE> lsb_release -a
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description: Ubuntu 18.04.1 LTS
- Release: 18.04
- Codename: bionic
- dragam@USDockerVM:~$ IRE>
- dragam@USDockerVM:/$ IRE> sudo iptables -L
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- Chain FORWARD (policy DROP)
- target prot opt source destination
- DOCKER-USER all -- anywhere anywhere
- DOCKER-ISOLATION-STAGE-1 all -- anywhere anywhere
- ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
- DOCKER all -- anywhere anywhere
- ACCEPT all -- anywhere anywhere
- ACCEPT all -- anywhere anywhere
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- Chain DOCKER (1 references)
- target prot opt source destination
- Chain DOCKER-ISOLATION-STAGE-1 (1 references)
- target prot opt source destination
- DOCKER-ISOLATION-STAGE-2 all -- anywhere anywhere
- RETURN all -- anywhere anywhere
- Chain DOCKER-ISOLATION-STAGE-2 (1 references)
- target prot opt source destination
- DROP all -- anywhere anywhere
- RETURN all -- anywhere anywhere
- Chain DOCKER-USER (1 references)
- target prot opt source destination
- RETURN all -- anywhere anywhere
- dragam@USDockerVM:/$ IRE>
Add Comment
Please, Sign In to add comment