-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
add CTRL+e for extracting current focused file #472
base: main
Are you sure you want to change the base?
Conversation
This could use |
|
The only other thing I can think of is copying a file from an intermediate layer (that has been changed in a following layer) - I'm not sure if you can do that with |
Hey @TheRealGramdalf, I would say that @miskr-instructure is right with the Try this
|
^ You may be able to solve those by readonly-mounting All the solutions to this are more complex than the PR's. The only other trick would be directly accessing docker's image repo in the filesystem instead of going through the daemon, which is too brittle. |
Hi, thanks a lot for your PR, I added the functionality to extract from local archives in my local repository (I don't think I can contribute code to this PR) |
No? FROM scratch
COPY --from=alpine /lib/apk/db/installed .
# Just a random text file docker build . -t test
docker create test .
docker cp test:/installed . File extracted successfully
Also wrong, it just needs to exist, it can be stopped.
That is correct, yes. @TheRealGramdalf good idea!
Have you looked into Crane? Perhaps this could supply with a better file extraction method? |
Glad to know I'm not going crazy. I've since stopped using docker for a lot of things, so I didn't end up trying that myself. Thanks @DeanAyalon! |
I think this might not be working, at least, on my MacOS I'm not savvy at Go, and I'm not sure which file runs for what purposes, but I see in some of the Extract functions, it simply logs "Not implemented" - Could it be the case for Mac as well? And - How do I access the fmt log? So perhaps I can see what error my own machine is throwing when attempting to extract Also, sorry where are the files extracted to? Perhaps it does work, but I just am looking in the wrong place |
I agree, this functionality was pulled in already, however, I don't see it working as expected. I can dig further on this. |
Added a way to extract the current focused item in the tree view. This is far from optimal and we can start discussing on it.
#224