Quantcast
Browsing all 29 articles
Browse latest View live

Answer by Siwei for How do I edit a file after I shell to a Docker container?

docker comes up with no editors. so simply install vim, 36MB space don't kill your docker!

View Article


Answer by salah for How do I edit a file after I shell to a Docker container?

First login as root :docker run -u root -ti bashType following commands:apt-get update &&apt-get install nano

View Article


Answer by Abderrahim Oujbih for How do I edit a file after I shell to a...

You can install nanoyum install nano

View Article

Answer by ziff for How do I edit a file after I shell to a Docker container?

If you are looking for small, try nano-tiny!apt-get updateapt-get install nano-tinyFWIW, the Postgres Docker Image was built with linuxkit.For info and to compare...My Container reports:# apt-cache...

View Article

Image may be NSFW.
Clik here to view.

Answer by aas4mis for How do I edit a file after I shell to a Docker container?

I used a mysql:8.0 container and found there was no text editor installed. There was also no package manager installed??? Luckily I had VS Code installed with the docker extension. With the docker...

View Article


Answer by Jignesh Nakrani for How do I edit a file after I shell to a Docker...

You can view the file content in running container without installing anythingMethod 1: if you are using vs code, then install a docker extension. Then when you run the container, click on docker icon...

View Article

Answer by Douglas Krugman for How do I edit a file after I shell to a Docker...

If you are using Docker Desktop, you can click on the container, view the files from the files tab, and right-click on any file to edit it!

View Article

Answer by Mac for How do I edit a file after I shell to a Docker container?

First copy the file out of the container:docker cp my-container:/data/scripts/main.py main.pyThen edit locally with your vi, emacs or whatever, then put it back:docker cp main.py...

View Article


Answer by Susobhan Das for How do I edit a file after I shell to a Docker...

Working Solution #simplifiedNeed to install as root user, to update the linux as well as install application.docker bash as root userdocker exec -u 0 -it app22-jenkins-1 bashUpdate linuxapt update...

View Article

Browsing all 29 articles
Browse latest View live