Unable to install vim or nano inside docker container

后端 未结 6 1971
失恋的感觉
失恋的感觉 2021-02-01 03:11

Trying to install inside a docker, either vim or nano but I only get this:

0% [Connecting to archive.ubuntu.com (91.189.88.152)]

Exit docker an

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 03:39

    Some customized docker images have just the bare minimum dependencies to run. This sometimes means that even apt package manager is not be installed by default and recreating another docker image from scratch is not an option.

    But, I realized that most docker images come preinstalled with yum package manager.

    So you can install vim or nano using;

    yum install vim
    

    or

    yum install nano
    

提交回复
热议问题