What if there is a more straightforward solution to manage your containers with a UI?
Okay, we all know that managing containers when you have a lot of them can be challenging, especially if you are a command line fan.
Let's be sincere, a UI to help us deal with that is up in handy.
Most of you might know Docker Desktop, it's the "official" software to help us play with our loved containers. But I must confess, I'm not good with it. A time ago, I had problems with some hardware compatibilities. Some of that was fixed, however, I think Docker Desktop is kinda heavy ☹️
I am a WSL user. I use Docker in it as Docker Engine (just like would be in a Linux system), and it broke my heart when I installed Docker Desktop and my previous containers went missing because Docker Desktop creates a new Context, separating the Docker Engine containers from its.
If you got interested to know how I put in using Docker Engine in WSL without depending on Docker Desktop, I wrote about it right here (it's in Portuguese, but if you don't understand it, give it a try, it's a beautiful language 😏):
WSL 2
But let's say I just had a personal bad experience. Regardless of that, whether you are having a bad experience or not I come to show you an alternative, a lighter one. It's a Container!
Portainer.io is a container that works just like a PGAdmin container, you will get a localhost port opened with an interface to manage your containers!
You can understand more of it in its official documentation: Portainer.io
But if you're impatient or eager to get started fast, here is the command line to pull the image and start the container. (Feel free to change the PORT you want it to run):
docker volume create portainer_data
docker run -d -p 7000:7000 -p 9000:9000 -p 9443:9443 --name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
After that, just access your localhost:9000 (or with the port you chose) and VOILÁ!
That's it for today. Feel free to check some other articles and follow me to read my next friendly (or evil 👀) articles. ☕
Top comments (0)