Docker "/ Permission denied" every pc (linux mint) reboot, it only goes away when uninstalling/installing docker again

  bash, docker, linux, linux-mint

I use docker at work, and this happens every time with all images I have. Every time I reboot my notebook I have this same error, I also tried running with sudo but it doesn’t change the error. But if I uninstall and reinstall, it works just fine, every single time (I’m reinstalling the exact same version).

My configs: I use Linux Mint 19.3, every uninstall and install I follow this tutorial, and I after running the hello world image, I add my user to the group, following this post install. My /etc/apt/sources.list.d/addtional-repositories.list is only deb [arch=amd64] bionic stable

My docker image is basically this one (I just changed some names to post here):

FROM postgres:11

COPY ./extensions/* /usr/local/bin/extensions/
COPY ./schemas/xpto/* /usr/local/bin/schemas/xpto/
COPY ./schemas/operation/* /usr/local/bin/schemas/operation/

COPY ./user_permissions/* /usr/local/bin/user_permissions/

COPY ./domains/* /usr/local/bin/domains/

COPY ./populate_domains/xpto/* /usr/local/bin/populate_domains/xpto/

COPY ./ /docker-entrypoint-initdb.d
EXPOSE 5432  

I tried adding

WORKDIR /usr/local/bin
RUN chmod +x ./

in the end of the docker file (instead of the last copy and before the expose) but it didn’t help at all (the error changed to "/bin/bash: ./ Permission denied")

I just don’t know what to do, I’m almost memorizing all the tutorials because every week I have to uninstall and reinstall docker at least 2 times, and I also can’t find anyone that had the same problem. I really appreciate any help 🙂

Source: Docker Questions