mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-15 10:47:26 +08:00
It fixes lots of bugs, can fallback to long polling, resize viewport of terminals and share clients state of the session, so they all see the same thing.
34 lines
982 B
Markdown
34 lines
982 B
Markdown
# 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.12.1 or higher is required.
|
|
|
|
## 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`
|
|
|