Quantcast
Channel: How do I edit a file after I shell to a Docker container? - Stack Overflow
Viewing all articles
Browse latest Browse all 29

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

$
0
0

Working Solution #simplified

Need to install as root user, to update the linux as well as install application.

  1. docker bash as root user
docker exec -u 0 -it app22-jenkins-1 bash
  1. Update linux
apt update -y
  1. Upgrade
apt upgrade -y
  1. installvim
apt install vim -y

Viewing all articles
Browse latest Browse all 29

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>