postgres 10.0을 도커 컨테이너에서 사용하려고합니다.docker alpine linux container에있는 Postgres
FROM postgres:10.0-alpine
RUN apk add openrc --no-cache
USER postgres
RUN /etc/init.d/postgresql start
RUN psql --command "IF NOT EXISTS (SELECT FROM pg_catalog.pg_user WHERE usename = 'user') THEN CREATE USER user WITH SUPERUSER ENCRYPTED PASSWORD 'password'; END IF;"
RUN createdb main
EXPOSE 5432
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]
CMD ["/usr/lib/postgresql/10.0/bin/postgres", "-D", "/var/lib/postgresql/10.0/main", "-c", "config_file=/etc/postgresql/10.0/main/postgresql.conf"]
것은 내가 오류 다음있어 : 나는 Dockerfile 다음이
/bin/sh: /etc/init.d/postgresql: not found
는 /etc/init.d/postgresql
정말없는 것 같다. 내가 도대체 뭘 잘못하고있는 겁니까?