Hi!
I successfully created docker ctonainer with name “my_first_container” like this:
FROM postgres:9.6.24
ENV POSTGRES_HOST_AUTH_METHOD=trus
ENV POSTGRES_USER=postgres
ENV POSTGRES_PASSWORD=some_pass
WORKDIR /Downloads
COPY /plv8_v.2.x ./Downloads
RUN dpkg -i Downloads/gcc-10-base_10-20200411-0ubuntu1_amd64.deb
RUN dpkg -i Downloads/libgcc-s1_10-20200411-0ubuntu1_amd64.deb
RUN dpkg -i Downloads/plv8-96_2.1.0-2_amd64.deb
RUN dpkg -i Downloads/v8_3.14.5.10-26_amd64.deb
COPY /postgresql /usr/share/postgresql/9.6/extension/
FROM postgres:9.6.24
ENV POSTGRES_HOST_AUTH_METHOD=trust
ENV POSTGRES_USER=postgres
ENV POSTGRES_PASSWORD=my_pass
# Create folder Downloads in Docker
WORKDIR /Downloads
COPY /plv8_v.2.x ./Downloads
RUN dpkg -i Downloads/gcc-10-base_10-20200411-0ubuntu1_amd64.deb
RUN dpkg -i Downloads/libgcc-s1_10-20200411-0ubuntu1_amd64.deb
RUN dpkg -i Downloads/plv8-96_2.1.0-2_amd64.deb
RUN dpkg -i Downloads/v8_3.14.5.10-26_amd64.deb
COPY /postgresql /usr/share/postgresql/9.6/extension/
Nice.
In this container has PostgreSQl db with 10 tables. Every tables has 10 rows.
Now I work this container about 1 day.
And now every 10 tables has 100 rows.
OK.
Now I want to create another docker container “my_second_container” base on my existing “my_first_container” .
It must contain 10 tables with 100 rows in every table.
Is it possible?