Giter Club home page Giter Club logo

gnome-shell-extension-docker's Introduction

Gnome Shell extension for Docker

Usage

When installing this extension, you will be able to manage your docker containers.

The following actions are available :

  • Start
  • Remove
  • Pause
  • Stop
  • Restart
  • Exec shell

Screenshot

Screenshot

Installation

You can install this extension by following this link.

Contribution

Please feel free to contribute by sending pull requests or raising issues.

License

Licensed under the GNU General Public License Version 3. See COPYING for details.

Authors

  • gpouilloux (Guillaume Pouilloux)

gnome-shell-extension-docker's People

Contributors

a-legrand avatar adaliszk avatar alessandrodolci avatar dlech avatar gpouilloux avatar jonafato avatar levingermann avatar mnachury avatar wernerblanck avatar wfpaisa avatar winehub avatar ziggy42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gnome-shell-extension-docker's Issues

Gnome 3.32 - Error occurred when fetching containers

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.

Version 10 not working with Gnome 3.22.2 (Debian Stretch)

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!

Wrong names

I have debian:testing image but extension sees it like 'jolly_wright'. Is there any solution to see actual name?

Feature Request : In the list, Group similar containers by projectrootname

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

  • add a group add/remove button
  • use a switch button instead of add/remove

Request: please tag releases on GitHub

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!

Use a symbolic icon

Can you please a symbolic icon instead of a normal SVG one? The symbolic icons are themeable using CSS

[Feature request] Manage docker on other host

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.

Error occurred when fetching containers

After installing the GNOME extension, the extension's dropdown menu shows only this menu item.

Using:

  • Fedora 25,
  • GNOME 3.22.2
  • Docker version 17.03.0-ce, build 60ccb22

[UX] Confirmation on remove

Please provide confirmation dialog on container removal operation. I've just accidentally deleted my container while wanted to start it.

Error occurred when fetching containers

OS: Ubuntu 19.10
GNOME: 3.34.1

Run journalctl -xe

Output:

  • Error occurred when fetching containers
  • TypeError: this._dockerAction is undefined
  • Usage of object.actor is deprecated for DockerMenu_DockerMenu
    get@resource:///org/gnome/shell/ui/environment.js:249:29
    _renderMenu@/home/{$USER}/.local/share/gnome-shell/extensions/docker_status@gpouilloux/src/dockerMenu.js:73:7
    _refreshMenu@/home/{$USER}/.local/share/gnome-shell/extensions/docker_status@gpouilloux/src/dockerMenu.js:54:9

The colors are nowhere described

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?

sh instead of bash

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

Not working on Ubuntu 20.04

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

centos8 gnome3.32.2 install fail

Software Center tips: unable find docker_status_gpouilloux

environment

centos8 64-bit

cat /etc/centos-release
CentOS Linux release 8.3.2011

version

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

Feature request: Show container ip address

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

Error after upgrade

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.

Favourite list loads with delay

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.
Screenshot from 2020-05-19 12-51-20-2-2
After 20 seconds
Screenshot from 2020-05-19 12-51-41-2-2

High CPU usage

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. :-)

Main Icon

Simple everything I need ๐Ÿ‘

Feature Request: The main icon would be nice if it turns green when a docker instance is running.

Add a dark icon

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

Path for ps hardcoded to โ€œ/bin/psโ€

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)

Feature Request: Docker deamon not started - Grey out

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.

problem launch shell

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

Extension not working in Ubuntu 18.04.3

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.

Address gjs libraries deprecation warnings

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.

    • Obtaining a string representation of such types objects should now be done by explicitly calling the ByteArray toString method.
  • Access and usage of the actor property on UI GObject instances has been deprecated

    • We do so inside the 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.

Error occurred when fetching container

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?

No containers detected

"No containers detected" message shows when clicking the icon.

docker ps command shows a list of containers.
image

OS: Ubuntu 20.04.3
GNOME: 3.36.8

Feature request: docker exec -it <image_id>

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!

[Feature] Remove All Stopped Containers

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.