Docker-Tray is a Linux (gtk) C++ application to monitor docker.service and allows to start and stop the service from system tray.
Running the application.
g++ docker-service-tray.cc -o docker-tray `pkg-config --cflags --libs gtk+-3.0 appindicator3-0.1` -lsystemd
./docker-tray
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.
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
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.