How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

August 29, 2019

Bind mount

Filed under: Linux — Tags: , , , — admin @ 1:34 pm
I note this for me . I need to see a log directory on the account over scp. So one soulution for me was to mount with bind the log directory.

mount --bind /some/where /mnt/readonly
mount -o remount,ro,bind /mnt/readonly

August 19, 2019

Docker COPY failed: stat

Filed under: Linux — Tags: , — admin @ 12:30 pm

Today I am trying to use docker and saw this problem

COPY failed: stat /var/lib/docker/tmp/docker-builder749895154/docker-directory/apache/project.conf: no such file or directory

The fix for this problem is to check your .gitignore file , and add a exception for that directory

!docker-directory/

Powered by WordPress