Open simeononsecurity opened 1 year ago
@simeononsecurity i'm really struggling with this and I don't know what I'm doing could you point me in the right direction?
name: Create NFS volume command: > docker volume create \ --driver local \ --opt type=nfs \ --opt o=addr={{ nfs_server }},{{ nfs_opts }} \ --opt device=:{{ nfs_path }} \ {{ nfs_vol_name }}
name: Pull apt-cacher-ng Docker image docker_image: name: sameersbn/apt-cacher-ng:latest source: pull
name: Run apt-cacher-ng container command: > docker run -d --restart always --name apt_cacher_ng -p 3142:3142 -v {{ nfs_vol_name }}:/var/cache/apt-cacher-ng:nocopy sameersbn/apt-cacher-ng:latest
but I get this
andrea@apt:~$ sudo docker logs 3df chown: changing ownership of '/var/cache/apt-cacher-ng': Operation not permitted chown: changing ownership of '/var/cache/apt-cacher-ng': Operation not permitted chown: changing ownership of '/var/cache/apt-cacher-ng': Operation not permitted chown: changing ownership of '/var/cache/apt-cacher-ng': Operation not permitted chown: changing ownership of '/var/cache/apt-cacher-ng': Operation not permitted
,@abueide I ended up having too many issues with this image. I found another that worked better. Called acng.
I'm often having to run chmod and chown to get it working properly. However because of this I have to rerun this every time I restart the docker container. These folders shouldn't be handled on the image. They should be mountpoints that you should have to pass to the image.
I can fix this. Please let me know and I'll work on a MR.