Comments (3)
As pointed by @Braintelligence you can change the ownership of the folder where you installed grav. For this to work your user has to be part of the www-data
group. This group has id 33
, which appears in this command chown -R 33:33 /srv/doc-user
My workaround was like follows:
- Go to the Terminal/Konsole in Linux
- get the id of your running user.
id
My output looks like this: id
uid=1000(viktor) gid=1000(viktor) Groups=1000(viktor),...,130(docker)
we will use 1000 as UID and GUID in the following code. Replace with your ID - In your Dockerfile change following lines:
RUN chown www-data:www-data /var/www
USER www-data
with these
ARG UID=1000
ARG GUID=1000
RUN chown www-data:www-data /var/www
RUN useradd -u $UID newuser
RUN usermod -a -G newuser www-data
USER www-data
- Build and run your grav container
Like this you will add a new user in the grav container. This user has the same ID as your localuser has. Then it will add the group of this user to www-data. As such www-data will have access to your local folder. And so will you.
:)
from docker-grav.
You have to chown -R 33:33 /srv/doc-user
from docker-grav.
It's a problem with your user rights.
from docker-grav.
Related Issues (20)
- build fails because grav-admin is offline HOT 3
- Invalid Signal: SIGWINCH when building the Dockerfile on Windows HOT 3
- Scheduler : crontab configuration is missing HOT 3
- podman build HOT 1
- crash when installing official ldap plugin HOT 4
- Can't set GRAV_VERSION using environment variables
- how to add umask?
- grav-admin-${GRAV_VERSION}.zip is "Not found" HOT 1
- Building causes Forbidden error HOT 1
- Bind html to a directory doesn't work HOT 3
- Need Help/suggestions to add signed certificate HOT 1
- Themes do not work except Quark HOT 5
- apache2: Could not reliably determine the server's fully qualified domain name
- Upgrade Dockerfile from PHP 7.4 to PHP 8.0 HOT 1
- docker: Error response from daemon: pull access denied for getgrav/dockergrav HOT 2
- Git workflow HOT 1
- FAILED to read problem after upgrading HOT 1
- How to stop the running docker image?
- Docker image with pre-built PHP HOT 2
- Container does not stop gracefully
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-grav.