简体   繁体   English

如何在通过 docker 上的“开发环境”选项为本地存储库建立的开发容器中安装 tmux?

[英]How to install tmux inside a dev container established through the "dev environment" option on docker for a local repository?

I've cloned a github repo and ran into roadblocks trying to set it up locally so used Docker's dev environment option on it.我已经克隆了一个 github 存储库并遇到了试图在本地设置它的障碍,所以在它上面使用了 Docker 的开发环境选项。 The repo needs tmux as part of the build process and I can't install it inside the Docker environment cause it's linked to the repo and there's no mention of it there回购需要 tmux 作为构建过程的一部分,我无法将它安装在 Docker 环境中,因为它链接到回购,那里没有提到它

Tried brew install and then realised I'm inside a container...试过brew install然后意识到我在一个容器里......

You can just install it.你可以安装它。 I started docker a few hours back so I was confused.几个小时前我开始使用 docker,所以我很困惑。 Since its a Linux based image just run sudo apt-get update , then apt-get -y install curl and sudo apt-get install tmux in the docker cli由于它是基于 Linux 的映像,只需运行sudo apt-get update ,然后在 docker cli 中运行apt-get -y install curlsudo apt-get install tmux

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM