j-bennet / wharfee

A CLI with autocompletion and syntax highlighting for Docker commands.
BSD 3-Clause "New" or "Revised" License
657 stars 41 forks source link

wharfee exits on 'inspect <some image>' #153

Closed Tset-Noitamotua closed 7 years ago

Tset-Noitamotua commented 7 years ago

From listed images below Wharfee seems not to like python, node, postgres and redis.

wharfee> images
Repository        Created       Tag                 VirtualSize    ParentId    Id
----------------  ------------  ------------------  -------------  ----------  -----------
postgres          3 days ago    9.4                 252.675 MB                 sha256:4528
redis             last week     alpine              20.057 MB                  sha256:9947
nginx             3 weeks ago   latest              173.103 MB                 sha256:abf3
python            4 weeks ago   2.7-alpine          68.9 MB                    sha256:9c8c
microsoft/dotnet  last month    1.0.0-preview2-sdk  512.598 MB                 sha256:6704
busybox           2 months ago  latest              1.043 MB                   sha256:e02e
hello-world       6 months ago  latest              1.805 KB                   sha256:c54a
node              8 months ago  5.11.0-slim         197.795 MB                 sha256:cb88
wharfee> inspect python
404 Client Error: Not Found ("{"message":"No such image: python"}")
Goodbye!

wharfee> inspect node
404 Client Error: Not Found ("{"message":"No such image: node"}")
Goodbye!

wharfee> inspect postgres
404 Client Error: Not Found ("{"message":"No such image: postgres"}")
Goodbye!

wharfee> inspect redis
404 Client Error: Not Found ("{"message":"No such image: redis"}")
Goodbye!

Cheers Tset

j-bennet commented 7 years ago

Hmm, it seems that official Docker client does not like those either!

--- ~ » docker images                                                                                                                                   1 ↵
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
postgres            9.4                 452864725827        4 days ago          265 MB
--- ~ » docker inspect postgres
[]
Error: No such object: postgres

Wharfee should not just exit on those though. That needs to be fixed.

j-bennet commented 7 years ago

The fix is now in master (pip install git+https://github.com/j-bennet/wharfee.git).