Spin up a Speed Test server using Portainer

Spin up a Speed Test server using Portainer

Why use Portainer ?

Creating a Dockerfile may seem daunting at times, specially when your in a rush to get your apps deployed or if your new to Docker. What if we could deploy a container without the need to write a single line of code ? Well, Portainer helps us do just that.

What is Portainer ?

Portainer is a Universal Container Management System for Docker, Kubernetes and other services. It allows us to manage containers, images, networks and volumes from an easy-to-use Portainer dashboard and provides many other features.

How to use Portainer with Docker Desktop?

  1. Open Docker Desktop
  2. Click on Add Extensions from the Extensions section on the left
  3. Search for Portainer and click on install. portainer1.PNG

Deploy a container using Portainer

  1. Click on Portainer Extension from Docker Desktop.
  2. Click on Docker from the environments listed.
  3. Or click on Containers and select Add container
  4. We will create a Speed Test server using dolfintel/speedtest
  5. Add the container name, image name and ports as shown below portainer.PNG
  6. Now click on Deploy Container. portainer2.PNG
  7. Once the container is successfully deployed open the browser to localhost:3000 and test your network speed. portainerLibreSpeed.PNG That's how simple it is to create and deploy a container using Portainer.
  8. You can also stop/remove the container by simple selecting it and clicking on stop/remove.

Conclusion

As you can see we did not have to write any code or create a Dockerfile to run our Speed test server. Similarly, Portainer has many other useful features and can be used to easily manage Docker volumes and networks etc.