Self-hosted service
play-with-docker/play-with-docker avatar
play-with-docker/play-with-docker

play-with-docker: shut down since March, still advertising a live site

You know it, you use it, now it's time to improve it. PWD!.

3,240 stars796 forksJavaScriptMIT

At a glance

What is it?
play-with-docker gave each visitor a throwaway Alpine machine that ran Docker inside Docker, and the hosted service stopped on 2026-03-01. The repository remains as the server, with a compose file, a proxy, a Kubernetes tree and a self-hosting route that needs a wildcard DNS resolver and the host Docker socket. Its own front page still points at the dead site.
Who is it for?
play-with-docker fits someone who already understands the architecture and wants to run the thing themselves, and it fits nobody who is looking for the free online playground. Verify four things before you start.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 93 days ago.
What is it written in?
Mainly JavaScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • play-with-docker/play-with-docker3,240 ★ · +17
Star history
Repository2026-09-242026-11-25
play-with-docker/play-with-docker3.2k3.2k

17 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The notice says the service is gone and the next paragraph says it is live

The very first element of the file is a deprecation notice: the hosted systems will be unavailable starting 2026-03-01, with a pointer to Docker's own documentation for supported material. Four lines below that, the page goes on to advertise a free Alpine machine in the cloud and then says a live version is available at the project's own address. Both statements cannot be true, and as of the date this was written the second one is simply stale. The repository's own description has the same problem in a different dialect: it is written in the present tense, telling you it is time to improve the thing you use. What remains here is not a product with a deprecation date attached. It is a server implementation whose front-end service is gone, and the page has not caught up.

The recorded language is JavaScript and the project is written in Go

The repository's recorded primary language is JavaScript. The project is written in Go. The module file declares the module path and a language version, the documented requirement is a Go toolchain at its stable release, the build image is a Go image, the compose file runs the entry point with the Go runner from a Go image, and the tree is thirteen Go package directories plus a Go file at the root with no JavaScript in it at all. There is no manifest, no source directory and no asset bundle anywhere in the tree. So the metadata is describing something else, almost certainly the separate front end that this repository does not contain. It is a one-field error and it is the first thing a visitor reads, on a project whose whole value was a web interface.

The documented build wants a kernel module, swarm mode, and someone else's image

The development section is a list of things you do to your own machine before you run anything:

bash
# Verify the Docker daemon is running
docker run hello-world

# Load the IPVS kernel module. Because swarms are created in dind,
# the daemon won't load it automatically
sudo modprobe xt_ipvs

# Ensure the Docker daemon is running in swarm mode
docker swarm init

# Get the latest franela/dind image
docker pull franela/dind

So self-hosting needs root for a module load, needs your development daemon reconfigured into swarm mode, and needs an image published by an individual rather than by the project. The image name is also overridable through an environment variable, but the note underneath it is emphatic that the standard nested image will not work and only that person's images do. After the four commands the block adds a comment about prefetching module requirements into a vendor directory so that the containers make no network requests, and then stops mid-sentence describing where the module cache lives. That optional step is the one that matters most for an offline or air-gapped playground, and it is the one the documentation does not finish.

The session identifier and the port go into a public subdomain over plain HTTP

The answer to reaching a published port from outside is a URL pattern, and the pattern is the interesting part. The hostname encodes your IP with hyphens, a session identifier, and the port, under a wildcard domain. The worked example puts a long opaque session string straight into a public host name. Two consequences follow. The service needs wildcard resolution for that whole subtree pointing at one server, which is why it cannot move off ports 80 and 443, a constraint the page states as unchangeable and invites suggestions about. And a session is identified by a token that appears in a name anyone who learns it can use. The example is plain HTTP, so a published port is served without encryption even though the front door is on the TLS port.

Port forwarding rests on wildcard localhost resolution and a changed system resolver

The playground URL scheme encodes the instance, the host and the port into a subdomain under localhost, which only works if every name under that suffix resolves to the loopback address. No mainstream resolver does that by default. The documented fix is to run a DNS forwarder with a single line of configuration and then, in the next sentence, to change your computer's default DNS server to use it. So the setup instructions for a local developer environment include reconfiguring the machine's resolver. The compose file makes the same assumption visible from the other end: one service publishes port 53, so the product runs its own name server alongside the proxy and the daemon.

The compose file mounts the Docker socket and compiles on first start

The local orchestration runs three containers behind a proxy. The main daemon has the host's Docker socket bind-mounted into it, and the comment says why: the app creates networks and launches containers, so it needs to talk to the daemon. That is the architecture in one line, and it means the service is a fully privileged client of whatever daemon it is pointed at. The same service also mounts your current working directory into its own source path, so compose has to be launched from the checkout or it mounts the wrong thing. Each of the two application containers runs a shell one-liner that generates an SSH host key with an empty passphrase and then either runs a prebuilt binary from a directory the repository does not contain, or compiles the project with the Go runner at container start. As committed, that second branch is the one you get.

The image bakes one SSH host key at build time and ships it to every instance

The build stage generates an SSH host key with an empty passphrase and copies the result into the final image. So the private half of the host key is a build artifact that every container started from that image shares, and the client half everyone computes from the same public file. That is the key a terminal client checks a host against, so a key baked into a distributable image removes the value of the check for every deployment made from it. Two smaller things in the same file. The final stage installs certificates without pinning a version and without clearing the package index, and it runs as root with no user instruction. The port it declares is also not the port anything else in the repository uses.

A 2016 dependency floor, a 2018 Docker minimum, and a toolchain three ways

The module file declares language version 1.16 and pins its direct dependencies to a spread of vintages: a container runtime dependency on a beta, a Docker client library on a commit from 2020, a GitHub client on a commit from 2017, and a cookie helper on a commit from 2016, alongside four framework packages. The indirect list is older still, running back to 2016. The README asks for the current stable toolchain while the module file and the build image both say 1.16. The compose file then ignores the build image and uses the floating latest Go image with a comment saying so. Three different policies for the same compiler, and a dependency graph that has not moved in roughly a decade while the repository's last push was in August 2026.

Editorial conclusion

play-with-docker fits someone who already understands the architecture and wants to run the thing themselves, and it fits nobody who is looking for the free online playground. Verify four things before you start. Read the deprecation notice first, because the hosted systems have been unavailable since 2026-03-01 and everything else on the page assumes a service that no longer answers. Work out what a session actually is, since the design puts the session identifier, your IP and a port into a public subdomain and serves it over plain HTTP. Decide whether you can meet the DNS requirement, because wildcard localhost resolution is what the whole port-forwarding scheme rests on and the documented fix changes your machine's resolver. And read the image build before you distribute anything, because the container bakes one SSH host key at build time.

Frequently asked questions

What is play-with-docker?

A service that gave each visitor a throwaway Alpine Linux machine in the cloud, where they could build and run containers and create clusters. It worked by running Docker inside Docker so that several playgrounds appeared to be separate machines, with clients connecting over SSH and a per-session limit of five playgrounds that were deleted after four hours.

What happened to play with docker?

The hosted systems became unavailable starting 1 March 2026, and the notice directs readers to Docker's own documentation for supported material. The repository itself was still pushed to in August 2026, so the server implementation remains while the service that ran it does not. The front page still advertises a live version at the project's own address.

Is play with docker free?

It was presented as free while it ran: the README describes a free Alpine virtual machine in the cloud. With the hosted systems unavailable since 1 March 2026, that offer no longer exists. The repository remains under a permissive licence, and running it yourself needs your own Docker daemon and your own name resolution.

How do I run play with docker myself?

The repository ships a compose file with three services behind a proxy, plus a standalone image. The documented steps are to verify your daemon, load an IPVS kernel module as root, put the daemon into swarm mode, and pull a third party's nested image, because the standard nested image is not supported. Port forwarding additionally requires wildcard localhost resolution, set up with a local DNS forwarder and a change to your machine's default resolver.

What is an online alternative to play with docker?

The deprecation notice points at Docker's own documentation, filtered to its labs and guides, as the supported route. The repository does not name any third-party replacement, and its architecture is specific enough that most hosted playgrounds will not match it, since it depends on Docker inside Docker, a session identifier encoded in a subdomain, and fixed ports on 80 and 443.

Official sources

  1. Issues
  2. License: MIT
  3. play-with-docker/play-with-docker on GitHub
  4. Project website
  5. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/play-with-docker-play-with-docker.svg)](https://hysenlabs.com/projects/play-with-docker-play-with-docker)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/play-with-docker-play-with-docker.svg)](https://hysenlabs.com/projects/play-with-docker-play-with-docker)

Was this useful?