How do I edit a file after I shell to a Docker container?

后端 未结 16 1948
你的背包
你的背包 2020-11-29 14:22

I successfully shelled to a Docker container using:

docker exec -i -t 69f1711a205e bash

Now I need to edit file and I don\'t have any edito

16条回答
  •  感动是毒
    2020-11-29 14:45

    An easy way to edit a few lines would be:

    echo "deb http://deb.debian.org/debian stretch main" > sources.list
    

提交回复
热议问题