Docker如何安装shell函数?
我一直在关注这个博客文章,并拉动Docker镜像后,shellfunction可用。 这里是安装的function。 我不明白的是他们如何安装到我的shell首先? 他们不包括在Dockerfile中,据我所知
shell函数不是由Docker容器添加的。 命令
curl -Lo .amb j.mp/docker-ambari && . .amb
将脚本从http://j.mp/docker-ambari下载到临时文件.amb
,然后执行。
j.mp链接扩展到https://raw.githubusercontent.com/sequenceiq/docker-ambari/master/ambari-functions ,这就是shell命令的安装方式。