gpouilloux / gnome-shell-extension-docker Goto Github PK
View Code? Open in Web Editor NEWAn extension for managing docker containers
License: GNU General Public License v3.0
An extension for managing docker containers
License: GNU General Public License v3.0
Simple everything I need ๐
Feature Request: The main icon would be nice if it turns green when a docker instance is running.
Can you add a stop option for a container?
As many developers might have this issue.
Every docker web project at my desktop has it own set of containers, they are all listed.
So I would recommend grouping them based on the project root name is was created in.
Or simply group based on the first underscore
Now that we have groups I would
As requested by thawkins on the gnome extension page:
It would be great if you could add a "shell" command for running containers that would run docker exec -it [container] [shell command] ie docker exec -it mycontainer /bin/bash to open a bash shell on the running container, it may need some way to specify both the terminal prog and the shell command.
I think this feature also sounds really helpful!
Extension stopped working after upgrading to Gnome 3.32 with the error message "Error occured when fetching containers"
Gnome shell log (Alt+f2, lg, extensions) says Docker Integration has not emitted any errors.
docker ps works from a terminal
Uninstalling and reinstalling did not seem to resolve the issue.
I have debian:testing image but extension sees it like 'jolly_wright'. Is there any solution to see actual name?
Ubuntu 20.04
Gnome 3.36.1
JS ERROR: Extension docker_status@gpouilloux: Error: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GOb>
DockerMenu_DockerMenu@/home/aaa/.local/share/gnome-shell/extensions/docker_status@gpouilloux/src/dockerMenu.js:32:49
enable@/home/aaa/.local/share/gnome-shell/extensions/docker_status@gpouilloux/extension.js:35:18
_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:166:32
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:336:26
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:232:39
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13
Is the a plan to support the Gnome 3.22?
Cheers
I'm trying to install in the latest ubuntu version 22.04
After installing the GNOME extension, the extension's dropdown menu shows only this menu item.
Using:
Using Ubuntu 18.04.3 (Gnome 3.28.2) the extension appears in the top bar but when I clicked on it, the message "Error occurred when fetching containers" is showed.
It will be nice to open terminal with the selected container then able to run command.
awesome work by the way.
For example if I remove a container, the icon for this extension becomes unresponsive until the remove operation is complete. This can result in an unresponsive / clunky feeling UX.
I'm using gnome shell Version 3.26.2. And I get a really high cpu usage.
I did have to disable to manage to use gnome again.
I can provide any information you would like to, just ask me. :-)
Hi,
could you add a dark icon for light themes? I am using a white topbar and it makes the icon hard to see.
Thanks
When I click on open shell my terminal is open but close instantly
there is these log in journalctl /usr/bin/gnome-shell -f
i'm on fedora 33 with GNOME Shell 3.38.4
avril 09 20:49:09 fedora gnome-shell[2010]: Docker: `Open shell` action terminated successfully
avril 09 20:49:15 fedora gnome-shell[2010]: Usage of object.actor is deprecated for DockerMenu
get@resource:///org/gnome/shell/ui/environment.js:317:29
_renderMenu@/home/x0rld/.local/share/gnome-shell/extensions/docker_status@gpouilloux/src/dockerMenu.js:74:9
_refreshMenu@/home/x0rld/.local/share/gnome-shell/extensions/docker_status@gpouilloux/src/dockerMenu.js:55:18
See #48 (comment)
Opening a shell inside a running container is not using gnome-terminal
as it is hardcoded within this extension.
We could let users choose which tool they want to use, it'd require implementing preferences within this extension & have a proper dialog to control them.
Please, Could you provide support to Gnome 3.36?
Thanks in advance!
Really like this simplicity of this - it's handy to see which containers are running.
I notice the plugin already knows if the docker daemon isn't started.
Would it be possible to get the icon to grey out if it detects this please, just so I can see at a glance.
Hi I am trying to install it on ubuntu 18.04.
My Gnome Shell version is 3.28.3.
Installation link doesn't have 3.28 extension ( 3.22 and below ). Any hint/advice which one should I use in absence of 3.26 ( 322 , 3.20 ?)
Thanks in advance
Using Ubuntu 19.04 (Gnome 3.32.1) the extension does not appear in the top bar
Hi, I have many containers based on alpine using sh and missing bash, so I think that switching the exec command to "sh -l" would give more compatibility to this great extension.
Many thanks
Michele
I wanted to reload gnome shell and wrote killall gnome-shell
command. It destroyed the session and lead to a new login. After that the Docker loads empty after login and loads items after 15-25 seconds. With another user items loads immediately. Removing all files from my user home dir doesn't change anything.
Even don't know where can remain an attachment to my user in system.
After 20 seconds
Extention gives me this error in looking glass:
"Error: no property 'gicon' in property list (or its value was undefined). TypeError: _indicator is undefined"
And extention list in firefox shows just an error icon.
I have opensuse tumbleweed and gnome 3.20.2
Can you fix that?
Do you need any other info?
Thank you!
I have lots of containers running. I can guess what the green and red points mean. But what about the turquoise ones?
Also I was not able to start images from the menu, even though it is provided as an option there.
Would it be possible to simply add a small help section in the settings?
I upgraded from gnome-extensions website and the extension stopped working.
Error: GObject.registerClass() used with invalid base class (is PopUpMenuItem).
I'm using Gnome 3.30.2.
Please provide confirmation dialog on container removal operation. I've just accidentally deleted my container while wanted to start it.
Last versions of Gnome Shell came with some changes to gjs libraries, which currently cause some warning messages to be thrown regarding some of the extension components.
Here is a brief description of the issues:
The output of some GObject functions has been changed from the custom ByteArray type to JS Uint8Array built-in type, as reported here: https://gitlab.gnome.org/GNOME/gjs/-/tags/1.53.90.
toString
method.Access and usage of the actor
property on UI GObject instances has been deprecated
DockerMenu
and DockerSubMenuMenuItem
classes, this should be addressed calling methods directly on the instance, instead of obtaining the actor
property reference first.Both of the issues have a warning status, not causing any break for the time being, but support of the old behaviors is not guaranteed by the libraries, so fixes should be applied to avoid further issues.
I'm working on packaging this extension for NixOS. Currently, there are no versioned release tags that I can point to in the build. Can you tag releases on GitHub so this information is readily available, both for this package and generally to be able to know what git revision corresponds to a release pushed to the GNOME extensions website? Thanks in advance!
Ubuntu 16.10
Docker version 17.04.0-ce, build 4845c56
GNOME Shell 3.20.4
I already tried docker ps -a --format '{{.Names}},{{.Status}}' and it works without a problem.
What can I do?
Hi Guillaume,
Can you please upgrade to the new gnome shell version?
how to empty list of container?
Since there's no functionality when there are no containers, could we please have an option to remove the icon from the status bar when in such condition?
OS: Ubuntu 19.10
GNOME: 3.34.1
Run journalctl -xe
Output:
After upgrading to gnome-shell 3.20, the extension loaded from https://extensions.gnome.org/extension/1065/docker-status/ was broken because of the undefined 'gicon' bug. This has been fixed by c4e75fc, I manually applied the patch and it's working now.
Could you update the version on extensions.gnome.org ?
Upgrading to version 10 using extensions.gnome.org
results in a non-functional extension (not even shown), but no error raised.
Manually downloading the version 9 and installing it using the gnome-tweaks-tool fails with the error "Invalid extension".
Thanks for you work!
I rarely use docker on my Desktop. It would be very cool if this extension could connect to my external docker hosts. One possible solution could be that the extension connects through SSH to an external docker host. Authorization through SSH key files to avoid password prompts.
I think this one is really handy on the same spirit of this extension, checking what's the ip address assigned to any container is as well tedious so it would be cool to have a section where I can see the address for each container and maybe another useful info
I use NixOS, which doesn't have /bin/ps
linked by default. It's instead in /run/current-system/sw/bin/ps
. So I had to link it manually. Is there a more principled way for the extension to do this automatically? Not all systems have ps
in /bin/ps
.
Otherwise, the extension fails to install: docker_status_gpouilloux has error: GLib.SpawnError: Failed to execute child process โ/bin/psโ (No such file or directory)
Can you please a symbolic icon instead of a normal SVG one? The symbolic icons are themeable using CSS
Any chance this will work with podman? I think it could be great to have it work with podman containers so we can a rootless dev environment.
Sometimes my list of docker containers gets long, especially when doing stuff that creates ephemeral (temporary w/ autogenerated names) containers.
Currently I need to run docker system prune
to get rid of the dead ones.
It would be nice to have a "Remove Stopped" button in the UI for this extension that removes all stopped containers.
Software Center tips: unable find docker_status_gpouilloux
centos8 64-bit
cat /etc/centos-release
CentOS Linux release 8.3.2011
gnome 3.32.2
I can only get general information from the software center, I don't know where to get specific error information, sorry
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.