Docker Rootless Unable to Pull Images

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



Leave a reply



Submit