Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

enter a stopped docker container

# Commit the stopped image
docker commit 0dfd54557799 debug/ubuntu

# now we have a new image
docker images list
REPOSITORY    TAG     IMAGE ID       CREATED         SIZE  
debug/ubuntu  <none>  cc9db32dcc2d   2 seconds ago   64.3MB


# create a new container from the "broken" image
docker run -it --rm --entrypoint sh debug/ubuntu
# inside of the container we can inspect - for example, the file system
$ ls /app
App.dll
App.pdb
App.deps.json
# CTRL+D to exit the container

# delete the container and the image
docker image rm debug/ubuntu
Comment

PREVIOUS NEXT
Code Example
Shell :: downloading and updating vscode 
Shell :: install kali software manager gnome support 
Shell :: powershell type of object 
Shell :: how to merge git 
Shell :: GIT: change branch 
Shell :: mkdir -p shell 
Shell :: linux hdparm 
Shell :: how to host angular on github 
Shell :: windows mac address ethernet 
Shell :: sudo: command not found 
Shell :: bash tar list of files from folder 
Shell :: sed remove all line breaks 
Shell :: /bin/bash^M: bad interpreter: No such file or directory 
Shell :: serverless deploy missing credentials in config 
Shell :: find exclude directories 
Shell :: linux cp 
Shell :: how to kill a process in linux 
Shell :: linux change permissions recursive only directories 
Shell :: install ansible 
Shell :: ubuntu 
Shell :: vim quit 
Shell :: android/gradlew EACCES error 
Shell :: reset git file 
Shell :: git cherry pick many commits 
Shell :: remove a git remote origin 
Shell :: open a file in linux 
Shell :: get diff stash 
Shell :: docker build and run one command 
Shell :: install vs code on ubuntu 
Shell :: command to open snap gui 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =