1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00
Marcos Lilljedahl a10f247812 Allow to disable recaptcha explicitly by env variable
The reason for this is because sometimes in dev enviroments recaptcha
will might return a wrong answer, so it's nice to have a way to
explicitly disable it
2016-11-16 01:23:50 -03:00
2016-10-08 14:26:25 +02:00
2016-11-15 16:53:44 -03:00
2016-11-14 22:12:59 -03:00
2016-11-15 16:53:44 -03:00
2016-11-12 11:29:11 -03:00
2016-11-15 16:53:44 -03:00
2016-11-13 13:50:27 -03:00
2016-10-08 03:10:48 +02:00
2016-11-14 12:26:56 -03:00

play-with-docker

Play With Docker gives you the experience of having a free Alpine Linux Virtual Machine in the cloud where you can build and run Docker containers and even create clusters with Docker features like Swarm Mode.

Under the hood DIND or Docker-in-Docker is used to give the effect of multiple VMs/PCs.

A live version is available at: http://play-with-docker.com/

Requirements

Docker 1.13+ is required. You can use docker-machine with the following command:

docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.13.0-rc1/boot2docker.iso <name>

The docker daemon needs to run in swarm mode because PWD uses overlay attachable networks. For that just run docker swarm init.

It's also necessary to manually load the IPVS kernel module because as swarms are created in dind, the daemon won't load it automatically. Run the following command for that purpose: sudo lsmod xt_ipvs

Installation

Start the Docker daemon on your machine and run docker pull docker:1.12.2-rc2-dind.

  1. Install go 1.7.1 with brew on Mac or through a package manager.

  2. go get

  3. go build

  4. Run the binary produced as play-with-docker

  5. Point to http://localhost:3000/ and click "New Instance"

Notes:

  • There is a hard-coded limit to 5 Docker playgrounds per session. After 1 hour sessions are deleted.
  • If you want to override the DIND version or image then set the environmental variable i.e. DIND_IMAGE=docker:dind

FAQ

How can I connect to a published port from the outside world?

We're planning to setup a reverse proxy that handles redirection automatically, in the meantime you can use ngrok within PWD running docker run -d --net=host jpetazzo/ngrok "-log-level debug 127.0.0.1:<port>" where "<port>" is the published service port. After that check the created container logs to look for the *.ngrok.io URL so it can be used in the browser and that's it.

Description
No description provided
Readme MIT 527 KiB
Languages
JavaScript 68.4%
Go 14.8%
CSS 11.4%
HTML 4.9%
Shell 0.3%
Other 0.2%