Skip to content

Docker-Tray is a Linux (gtk) C++ application to monitor docker.service and allows to start and stop the service from system tray.

Notifications You must be signed in to change notification settings

redocnib/docker-tray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker-Tray

Docker-Tray is a Linux (gtk) C++ application to monitor docker.service and allows to start and stop the service from system tray.

Screenshots

bar 1 Screenshot from 2020-02-11 14-11-18 image

Execution

Running the application.

g++ docker-service-tray.cc -o docker-tray `pkg-config --cflags --libs gtk+-3.0 appindicator3-0.1` -lsystemd
./docker-tray

Dependencies

sudo apt install libsystemd-dev
sudo apt-get install libgtk-3-dev
sudo apt install libappindicator3-dev
lsystemd
tray.h from https://github.com/zserge/tray

The application utalizes sd_bus for hooking service states.

Autostart - run on startup

For debian systems add the following text to nano ~/.config/autostart/docker-tray.desktop replace with orginal path.

[Desktop Entry]
Name=Docker Tray
Comment=Test
Exec=<path to executable>/docker-tray
Type=Application
Terminal=false
Hidden=false

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

To do:

  • Implement make, build and packing
  • Enable/Disable service from tray.
  • Enable/disable application on startup
  • Refactor the code, implement proper testing.

Please make sure to update tests as appropriate.

License

MIT

About

Docker-Tray is a Linux (gtk) C++ application to monitor docker.service and allows to start and stop the service from system tray.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published