Skip to content

Getting the following error when hosted in a VM #208

Closed Answered by damithcl
damithcl asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ludeknovy , I have tried with adding the permission to Dockerfile but was not successful.Permission changes anre not persisting in the docker volume . For example I have tried like ,
FROM timescale/timescaledb:2.4.1-pg13 USER root ENV POSTGRES_DB jtl_report COPY --chown=user:user schema.sql /docker-entrypoint-initdb.d/ RUN chmod -R 765 /docker-entrypoint-initdb.d/

Finally I got it done via manually executing the sql within the container.
psql -U postgres -d jtl_report -a -f /docker-entrypoint-initdb.d/schema.sql

There may be a issue with Ubuntu 18.04 docker permissions but I m not sure . It all works fine in 20.04.

Thanks a lot for your tremendous support on this :)

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@ludeknovy
Comment options

@damithcl
Comment options

@ludeknovy
Comment options

@damithcl
Comment options

Answer selected by damithcl
@ludeknovy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants