I’m new to docker and trying to work through the Developer - Beginner Linux Containers.
In section 2.0 (Webapps with Docker), after I run “docker run --name static-site -e AUTHOR=“cbedo” -d -P seqvence/static-site” it works. After running docker port static-site, I get:
443/tcp → 0.0.0.0:32770
80/tcp → 0.0.0.0:32771
I can then connect at localhost:32771 and see the “hello cbedo” site running in the container.
I then ran docker-machine ip default which at first didn’t work ,but after a docker-machine restart, gave me:
192.168.99.100
But for some reason, I am unable to connect at http://192.168.99.100:32771. Chrome says “refused to connect.”
Any help would be appreciated.
Thanks.
I am running macOS Sierra 10.12.1 on a 2013 Retina MBP.
Docker info:
ontainers: 15
Running: 1
Paused: 0
Stopped: 14
Images: 30
Server Version: 1.12.3
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 88
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host overlay null bridge
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.27-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.854 GiB
Name: moby
ID: PPPE:CR5E:FJGO:PJSQ:2R2O:QL3R:MAUQ:6VZR:YQP3:BETD:K7MJ:2YIH
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 20
Goroutines: 35
System Time: 2016-12-11T04:44:56.828025324Z
EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
WARNING: No kernel memory limit support
Insecure Registries:
127.0.0.0/8
running ohmyzsh shell in iterm2.