tchughesiv / cf-mini

Docker image running Cloud Foundry Stack - listens on ports 80/443/4443
Apache License 2.0
19 stars 7 forks source link

Running in Docker for Mac #11

Closed wallw-teal closed 8 years ago

wallw-teal commented 8 years ago

I'm trying to run this image in Docker for Mac, which does not appear to have the devicemapper support mentioned in the docs.

It appears to get all the way to these logs

Uploading hello...
Uploading app files from: /root/cf_nise_installer/test_apps/test_app
Uploading 595.7K, 10 files
Done uploading               
OK

Starting app hello in org DevBox / space dev as admin...

but the application is not available at https://hello.cf-mini.example and I get this instead

404 Not Found: Requested route ('hello.cf-mini.example') does not exist.

This command also fails:

$ cf login -a https://api.cf-mini.example -u admin -p cloudc0w --skip-ssl-validation
API endpoint: https://api.cf-mini.example
Authenticating...
Credentials were rejected, please try again.

Here's my docker info:

$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 1.12.0
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 22
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.15-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.788 GiB
Name: moby
ID: 34P5:YO5O:T6Q5:7VLE:WF4J:HOS3:JUEX:E2PT:HRIB:4E5B:BC4D:DNLB
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 17
 Goroutines: 27
 System Time: 2016-08-10T22:12:51.804688704Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Insecure Registries:
 127.0.0.0/8

Any assistance you could provide would be much appreciated.

tchughesiv commented 8 years ago

in order to make this work, you would have to modify the docker host image for the Mac to use the proper storage, that is probably the only way to make this work and could prove to be complicated. The better route, which I've done, would be to run Ubuntu VM with the proper storage configurations using something like virtualbox... on your Mac. Hope this helps.