gpouilloux / gnome-shell-extension-docker

An extension for managing docker containers
GNU General Public License v3.0
146 stars 71 forks source link

problem launch shell #65

Closed x0rld closed 2 years ago

x0rld commented 3 years ago

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
alessandrodolci commented 3 years ago

Hello,

I suspect your Docker container doesn't have shell binaries at /bin/bash or /bin/sh. Could you please check it out? You may have to customize your Dockerfile to add support for a shell.

As for the warnings, it's something we're aware of, but I'm afraid it doesn't relate to your problem.

x0rld commented 3 years ago

I have /bin/bash in the docker, I can access to the shell with docker exec -it

alessandrodolci commented 3 years ago

I made some tests using your configuration (3.38.4 on Fedora 33), everything seems ok to me. I tried running a shell inside a redis:latest container and it correctly brings up a new terminal.

Just to be sure, check that gnome-terminal is installed on your system and that the SHELL env variable is correctly set with your user's login shell.

x0rld commented 3 years ago

I have gnome-terminal and $SHELL set it's weird

alessandrodolci commented 3 years ago

Maybe you could provide us with some more detailed information about your configuration and use case, so that I can try and dig deeper into the issue?

Thank you.

dubbe commented 3 years ago

I'm experiencing the same issue. GNOME Shell 3.38.4 and Pop OS 21.04. I have gnome-terminal installed. But i am using fish as my shell, could that be the issue?

alessandrodolci commented 3 years ago

Hi @dubbe, just to confirm, is your SHELL environment variable set with the correct path to the fish binary?

dubbe commented 3 years ago

@alessandrodolci yes, it is

alessandrodolci commented 3 years ago

Are you sure that your container provides a shell? Check that either docker exec -it <container-name> /bin/bash or docker exec -it <container-name> /bin/sh are working.

dubbe commented 3 years ago

yes, those are both working fine.

dubbe commented 3 years ago

I see, just as @x0rld that the terminal opens briefly, but to fast to see any output