This comment has been minimized.
This comment has been minimized.
You can also do it without the |
This comment has been minimized.
This comment has been minimized.
This won't work if your image has a defined ENTRYPOINT. For these cases use: |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
@arjabbar As for the second line: |
This comment has been minimized.
This comment has been minimized.
Is there a form of this I can use to log into github as part of the "docker build ."? |
This comment has been minimized.
This comment has been minimized.
I find that when I run |
This comment has been minimized.
This comment has been minimized.
I think it never saves your changes because they are made to the container and not the image itself. As you are on bash, you have to skip it to root or use another terminal (take a note of your container ID) |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
docker run -it --entrypoint /bin/sh |
This comment has been minimized.
This comment has been minimized.
thank you.. ..you are a savior |
This comment has been minimized.
This comment has been minimized.
if you add --rm the container gets deleted if you exit it ;-) |
This comment has been minimized.
This comment has been minimized.
If you want to interact with an existing container, do:
(alpine has sh) |
This comment has been minimized.
This comment has been minimized.
Good to know |
This comment has been minimized.
This comment has been minimized.
I proposed to add a new command docker shell. Please leave your thought and vote |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
For me none of the above commands worked. I ran
I figured out that |
This comment has been minimized.
This comment has been minimized.
Thanks for that tip
…On Sun, Feb 7, 2021, 13:36 RafaelWO ***@***.***> wrote:
*@RafaelWO* commented on this gist.
------------------------------
For me none of the above commands worked. I ran docker inspect <image>
and got
...
"Cmd": [
"src/service.py"
],
"Entrypoint": [
"python"
],
...
I figured out that docker run -it --entrypoint "" <image> sh works in
this case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/11266726#gistcomment-3623078>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGYIZPPY2GG27HLHUJOMH3S5Z3LXANCNFSM4NMUTH5A>
.
|
This comment has been minimized.
Thanks