-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
view / download files from UI #224
Comments
@robbuckley, what do you mean with 'the local filesystem' in the context of running dive in a docker container? I'd like it to be the host where the container is running, and not the container itself. However,
Based on the last approach, it is already possible to copy all the content of any image to a dummy container and use a tool such as filebrowser to browse it. For example: FROM filebrowser/filebrowser
COPY --from=wagoodman/dive / /tmp/dive |
@1138-4eb i mean the equivalent of |
@robbuckley, the point is that, when
executing That's why I suggested three approaches. Precisely, the third option is an alternative to provide a 'Save as' dialog, which must be handled by the host, not by |
Slick, I like the idea. To sum it up generically: you're looking for a way while your're browsing layer contents in the UI to export a single file onto your host to you can inspect the contents. I'll have to think of the best way to do this. Currently dive throws away the file content, as it can take up a lot of space and currently isn't needed for the UI. Though, there are a number of requested features that would require the image file content to implement, so it sounds like there is some gaining appeal. As for how to get the file to the host, @1138-4eb you bring up some good approaches (the third option is clever, but also possibly non-obvious). |
In my case, I don't want to export it in order to inspect it, but to use it. For inspecting the contents, I think that dive's UI is ok. Optionally, common utilities such as less or vim can be used. Regarding my comment above ("the container cannot copy files to any location on the host"), upon further thinking, it might be possible for dive inside the container to copy content to any location on the hots. In order to do so, dive needs to copy the desired files to a docker volume, and then start a temporal container where both the volume and a path from the host are bind. |
Do we have an easy way to select and view specific file's content through dive's UI, at least? |
It is a great tool which I use regularly. It would be very useful to be able to view / export individual files from specific layers within the dive GUI. It would also be very useful to compare two files between layers (for example if a config file is overridden from one layer to another). It is easy enough to inspect and extract from my own containers. But when inspecting 3rd party containers I want to know what has been modified in order to evaluate why it has been changed. |
I needed this again, so I wasted a day to discover Google |
Got an usecase for this today :
Thanx for the tool, it's great for other use cases :-) |
+1 for this feature, viewing file content from UI would be very nice |
the cli way (to get file from docker image layer): |
A simpler CLI method: https://unix.stackexchange.com/questions/331645/extract-file-from-docker-image |
I've fixed To view export IMAGE=bb2-make-single
podman image save $IMAGE - | crane export - - | tar -Oxf - etc/passwd Note the missing front slash |
@wagoodman — it would be spectacular to combine with some tools like fzf and bat to provide fuzzy-searching and an in-UI preview of files. The preview could even be a hotkey based "load-on-demand" using something such as Even if you don't use those two specific tools, I imagine that a hotkey-driven on-demand load should be possible without adding a lot of extra size (though I would definitely advocate for file-caching to avoid re-extracting the file repeatedly if the user is, for example, flipping back and forth between two files to compare them). |
Refs wagoodman#224 Co-authored-by: kaedwen <[email protected]>
Refs wagoodman#224 Co-authored-by: kaedwen <[email protected]>
It would be really handy to be able to view small text files within the UI. Also to be able to download a selected file (to the local filesystem) would be super convenient
The text was updated successfully, but these errors were encountered: