简体   繁体   English

如何在Kitematic Boot2docker linux上安装东西?

[英]How do I install things on Kitematic Boot2docker linux?

I have run through the boot2docker virtual machine setup tutorial in the docker toolbox https://www.docker.com/toolbox . 我已经在docker工具箱https://www.docker.com/toolbox中运行了boot2docker虚拟机设置教程。

Using window 10 as my base, I managed to get virtualbox running from kitematic with Linux default 4.0.9-boot2docker 使用窗口10作为我的基础,我设法使用Linux default 4.0.9-boot2docker从kitematic运行virtualbox

When I start trying to run apt-get or yum to install things like NODE.JS or ASPNET I'm told that the files aren't found. 当我开始尝试运行apt-getyum来安装诸如NODE.JS或ASPNET之类的东西时,我被告知找不到文件。

The end goal is to be able to run my aspnet docker images on my local environment. 最终目标是能够在我的本地环境中运行我的aspnet docker镜像。

Do I need to install aspnet, node, etc... on my docker server before I can start running aspnet docker images? 在开始运行aspnet docker镜像之前,我是否需要在docker服务器上安装aspnet,node等? If yes, how do I install them in the version of linux that has no apt-get or yum? 如果是,我如何在没有apt-get或yum的linux版本中安装它们?

edit - note it is the ASPNET core documentation that seems to suggest I need to install things on the docker server. 编辑 - 注意它是ASPNET核心文档似乎暗示我需要在docker服务器上安装东西。 https://dotnet.readthedocs.org/en/latest/getting-started/installing-core-linux.html perhaps I can docker-build within the windows environment and docker-run from the linux VM without actually installing anything other than my docker image? https://dotnet.readthedocs.org/en/latest/getting-started/installing-core-linux.html也许我可以在windows环境中建立docker-build并从linux VM运行docker-run而不实际安装除了我之外的任何东西码头图片?

With docker you can focus on using application, not installation. 使用docker,您可以专注于使用应用程序,而不是安装。

you needn't waste time on application installation that you can pull the image directly to get node.js or aspnet environments work in minutes. 您不必在应用程序安装上浪费时间,您可以直接提取映像以使node.jsaspnet环境在几分钟内完成。

So answer your question, you can have these environments ready via pull command: 所以回答你的问题,你可以通过pull命令准备好这些环境:

docker pull node
docker pull microsoft/aspnet

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

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