Coder Social home page Coder Social logo

brpaz / ulauncher-docker Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 9.0 3.56 MB

Manage your Docker containers from Ulauncher

Home Page: https://ext.ulauncher.io/-/github-brpaz-ulauncher-docker

License: MIT License

Makefile 4.87% Python 95.13%
ulauncher ulauncher-extension docker

ulauncher-docker's Introduction

ulauncher-docker

Manage your Docker containers from Ulauncher

Ulauncher Extension CI Status License

Demo

Demo

Features

  • Lists all running Docker containers
  • Display container name, image, ip and exposed ports.
  • Allow executing common actions on containers like tailing logs, open a shell, start, stop and restart.
  • And more

Requirements

  • Ulauncher 5
  • Python >= 3
  • Docker daemon running on your machine

This extension also needs docker-py.

To install it, after installing the extension, run the following command on your terminal:

cd ~/.local/share/ulauncher/extensions/com.github.brpaz.ulauncher-docker
pip3 install -r requirementx.txt

Install

Open ulauncher preferences window -> extensions -> add extension and paste the following url:

https://github.com/brpaz/ulauncher-docker

Usage

On Ulauncher, type Docker to see the available commands:

Extension Commands

Development

git clone https://github.com/brpaz/ulauncher-docker
make link

The make link command will symlink the cloned repo into the appropriate location on the ulauncher extensions folder.

To see your changes, stop ulauncher and run it from the command line with: ulauncher -v.

Contributing

Contributions, issues and Features requests are welcome.

Show your support

Buy Me A Coffee

License

Copywright @ 2019 Bruno Paz

This project is MIT Licensed.

ulauncher-docker's People

Contributors

brpaz avatar neoklosch avatar semantic-release-bot 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

Watchers

 avatar  avatar  avatar

ulauncher-docker's Issues

"x-terminal-emulator" not always available on the system

Whenever the extension is opening a terminal, it runs "x-terminal-emulator". In my case (opensuse leap), this resolves to nothing.

Of course a quick workaround is to create a symlink that points 'x-terminal-emulator' to your preferred terminal emulator, for example:
ln -s $(which tilix) /usr/local/x-terminal-emulator

Nevertheless, there should be an option in the settings to specify your preferred app, or even a check at install to verify that something answers to that name in the path, and if not, take action to solve the problem... If no action is taken, this should be documented somewhere (hence this issue)

Container shell option

Can you please add an option to choose container shell? Many containers has bash support, it's not cool to type "bash" every time.

Error when saving extension and no dk working

First of all thank you for your extension ๐Ÿ‘

I have a problem when I try to add your extension, I got an error and even if I click save and go back to the launcher I still can use "dk".

I have installed python + the extension you said in your readme and still having the same message.

"Unexpected API error. KeyError: com.github.brpaz.ulauncher-docker"

Some information about my configuration:

OS: Ubuntu 18.10
Last ulauncher version
pip version 9.0.1 and python 2.7
Docker: CE 18.09

Can't install extension

Description?

Hey, I was using this extension and it was running smooth.But in other machine with the same installation, I can't install the plugin.
Screenshot-27_10_2023-08-44-24
Docker is installed already.

Extension Logs

ulauncher -v --dev |& grep ulauncher-docker
2023-10-27 08:47:41,337 | INFO | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docker" started. PID 7170
2023-10-27 08:47:42,133 | ERROR | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docker" exited instantly with code 1
2023-10-27 08:47:42,133 | ERROR | ulauncher.api.server.ExtensionRunner: _run_process() | Extension "com.github.brpaz.ulauncher-docker" failed with an error: ModuleNotFoundError: No module named 'docker'
  File "/home/carlos/.local/share/ulauncher/extensions/com.github.brpaz.ulauncher-docker/main.py", line 6, in <module>
  File "/home/carlos/.local/share/ulauncher/extensions/com.github.brpaz.ulauncher-docker/dk/extension.py", line 8, in <module>

unable to add docker extension

Message: 'com.github.brpaz.ulauncher-docker'
Error Name: UnhandledError
Type: KeyError

Stacktrace:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ulauncher/ui/windows/PreferencesUlauncherDialog.py", line 192, in on_scheme_callback
    resp = rt.dispatch(self, scheme_request.get_uri())
  File "/usr/lib/python3/dist-packages/ulauncher/utils/Router.py", line 49, in dispatch
    return callback(context, url_params)
  File "/usr/lib/python3/dist-packages/ulauncher/ui/windows/PreferencesUlauncherDialog.py", line 411, in prefs_extension_update_prefs
    controller = ExtensionServer.get_instance().get_controller(ext_id)
  File "/usr/lib/python3/dist-packages/ulauncher/api/server/ExtensionServer.py", line 76, in get_controller
    return self.controllers[extension_id]
KeyError: 'com.github.brpaz.ulauncher-docker'

I cant add unexpected api

Hi, this is the error when I tried to add to my ulauncher 4.4.0 rc1 (ubuntu 18.04)

Unexpected API error. HTTPError:
Cancel
Add

Crash

Hi, it crashes on latest beta.

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.