0
我正在試圖讓一個Dockerfile在NodeJS上工作的Whois。我正在使用Whois-UX(它只是用whois
linux命令產生一個whois進程,我使用的是「node:argon」docker鏡像,但它沒有安裝whois。似乎沒有辦法。apt-get install whois
圖像內的任一Whois with NodeJS Docker Image
然後我試圖用「Ubuntu的:12.04」,但我在運行它的應用程序的麻煩這裏是我的Dockerfile:
FROM ubuntu:12.04
WORKDIR /srv
ADD . /srv
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get install -y nodejs git git-core whois
RUN npm install
CMD ["node /srv/server.js"]
所以,有兩個可能的解決方案,我不知道如何解決,找出如何讓節點上的whois:氬氣圖像,或讓Ubuntu的docker鏡像工作,我寧願讓節點上的whois:氬氣,因爲優化了NodeJS ,但只要它有效,它就會做。
感謝您的幫助!
如果你嘗試ssh到你的Docker鏡像並運行'whois',你有什麼輸出? – christophetd
@christophetd它顯示沒有whois位置 – T94j0
如果您使用命令的完整路徑,即運行'/ usr/bin/whois'會怎麼樣? – christophetd