如果我运行以下命令,它将安装版本9.6.2,但我想要9.6.1:
apt-get install postgresql-client-9.6
这可能吗?
我试图在Dockerfile
这样做:
FROM ruby:2.2.5
# Add source for Postgres 9.6
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' > /etc/apt/sources.list.d/postgresql.list
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update -qq && apt-get install -y build-essential
# for postgres
RUN apt-get install -y libpq-dev postgresql-client-9.6