There will be a clock running counting 4 hours. So, important to know is

that when you start using and playing with Docker through this PWD hosted interface, whatever you do, within four hours the resources will be wiped.

Let’s launch our first instance, by clicking the ‘add new instance’ button.

You’ll immediately get a terminal in front of you, allowing you to execute commands as you would on any other machine terminal. This instance will receive an IP within your PWD’s IP space (10.0.19.0/24 in the example of the screenshot). You can also monitor CPU and memory of the instance in real time.

Let’s give it a spin:

docker run hello-world

You’ll see the hello-world container being pulled in and run output starting with ‘Hello from Docker!’. Nothing too fancy, but at least we know the Docker environment is doing what it’s supposed to do.

Now, to show that this thing has much more potential we’re going to start playing around with a Docker Swarm and we’ll a swarm with swarm mode within PWD. So, let’s add four more instances, because the maximum

instances you can run is five. We’ll initiate the swarm with three master nodes and two slave nodes. Init the swarm on node one, with one extra config parameter:

docker swarm init --advertise-addr [IP_OF_CURRENT_INSTANCE]

A blue avatar will appear next to the instance name on the left to represent it is serving as master in the swarm. The output will contain a confirming message and a new command to add workers to the swarm.

Copy this command and paste it in 2 of the other instances in the PWD interface. The output will confirm that the node joined the swarm as worker. You’ll see a blue opaque avatar appear next to the instance name on the left.

Now let’s add 2 more managers for HA purposes:

docker swarm join-token manager

This command will output another docker cli command including the swarm token for the managers. Copy that entire command and post it in 2 of the remaining, unused instances in the interface. If all is well, your swarm should be entirely set up and ready to go.