pauloamgomes / ubersicht-docker-containers

Docker widget for Übersicht
MIT License
15 stars 0 forks source link

Widget only shows No such file or directory #2

Closed JoanComasFdz closed 5 years ago

JoanComasFdz commented 5 years ago

I downloaded the zip file, extract the folder and copied the folder to the widgets folder of uberischt. The widget only shows No such file or directory:

docker container widgets

The path usr/local/bin exists and contains a docker folder. Running the command docker ps --format "table {{.ID}}|{{.Names}}|{{.Size}}|{{.Status}}" | grep -v CONTAINER on terminal works. Running the command osascript -e 'tell application "Terminal" to do script "docker exec -it '$1' sh"' on terminal works.

JoanComasFdz commented 5 years ago

I fixed it by adding the folder name to the command in the index.coffee script:

command: "ubersicht-docker-containers-master/helper.sh getStatus"

pauloamgomes commented 5 years ago

Hi @JoanComasFdz , that is not required, the script works well if you follow the installation steps:

"To enable, place the dockercontainers.widget folder in your Übersicht/widgets directory."

If you download the zip from the latest releases page https://github.com/pauloamgomes/ubersicht-docker-containers/releases and extract the folder will have the correct name