我試圖爲克隆的應用程序安裝postgresql-9.3-postgis-2.1或postgresql-9.1-postgis-2.1,但是我只能得到postgresql- 9.4-postgis-2.1在我的Ubuntu Docker鏡像上,它是由python:2.7鏡像構建的。無法在Ubuntu 14.04.1 Docker容器上獲取postgresql-9.3-postgis-2.1
我看着圖像,發現它在Ubuntu 14.04.1圖像上。我試圖在我的Xubuntu 14.04.2 VM上安裝postgis,一切正常。
我怎樣才能讓安裝工作正常?
Dockerfile是很容易的:
FROM python:2.7
RUN mkdir /workspace
RUN mkdir /data
WORKDIR /workspace
RUN apt-get update
RUN apt-get install postgresql postgresql-common postgresql-9.3-postgis-2.1
錯誤代碼是非常正常也:
E: Unable to locate package postgresql-9.3-postgis-2.1
E: Couldn't find any package by regex 'postgresql-9.3-postgis-2.1'
@Michael Dockerfile是致命的簡單,我只是想要一些文件夾,並從requirements.txt安裝python庫。然後,我嘗試在將它寫入Dockerfile之前手動安裝postgres的庫。我試圖更新和升級,並搜索緩存的庫,但沒有任何工作。此外,谷歌並沒有給我更多的信息。 – kxxoling