Docker rootless unable to pull images
Copying an answer I received on github if anyone else runs into this issue:
NFS doesn't support CAP_DAC_OVERRIDE, so you need to specify custom {"data-root":"/somewhere-out-of-nfs"} in ~/.config/docker/daemon.json to store the images in a non-NFS location.
See https://www.redhat.com/sysadmin/rootless-podman-nfs for technical details.
Docker failed to register layer
Looks like there is a remnant from the past. Delete it:
rm -fr /var/lib/docker/image/aufs/layerdb/sha256/06dd4f9415b3f89d3fb1138623cebb7245affc9410611552c6fb52b091587a2e
Then try:
docker pull mysql
Not able to open a file in PHP, permission denied and also type-error with fwrite()
I have changed the Dockerfile to this:
FROM php:8.1.10-apache
WORKDIR /var/www/html
RUN docker-php-ext-install mysqli pdo pdo_mysql
RUN chown -R www-data:www-data /var/www
# Create a new user
RUN adduser --disabled-password --gecos '' developer
# Add user to the group
RUN chown -R developer:www-data /var/www
RUN chmod 755 /var/www
# Switch to this user
USER developer
And also changed the variable's path $file to 'extras/users.txt' again.
This worked!
Related Topics
How to Cancel Command in Grunt Shell
To What Extent Can One Rely on Writing to Disk When Sigterm Is Given
How to Install Packages in Tcl
Can't Install Using Yum in Rhel 7.1
Change The Call from a Bash Script in a Month to a Week
Touch Command Create Multiple Files (Different Names) Under One Directory
Error Installing 'Topicmodels' Package, Non Zero Exit Status; Ubuntu
Can "Text File Busy" Happen When Two Processes Trying to Execute a Perl File in The Same Time
How to Selectively Create Symbolic Links to Specific Files in Another Directory in Linux
Trying to Delete All But Most Recent 2 Files in Sub Directories
Cmakelist File to Generate Llvm Bitcode File from C Source File
Is There a Rpm File Naming Convention in Lsb
Finding and Listing Duplicate Words in a Plain Text File
Shared Libraries (Dlopen) and Thread-Safety of Library Static Pointers
Error: You Must Install at Least One Postgresql-Client-<Version> Package