Docker Community Forums

Share and learn in the Docker community.

Setting noatime on Docker container filesystem


(Acook) #1

Hello,

I was wondering if anyone could tell me how to set the filesystem option noatime in a Docker container.

On my host system it is set:

[root@docker-test ~]# mount
/dev/mapper/vg_dockertest-lv_root on / type ext4 (rw,noatime)

But in my container it’s not:

bash-4.1# mount
rootfs on / type rootfs (rw)

Any ideas on how I can mount the / filesystem with noatime?


(Sam Saffron) #2

rootfs is btrfs or aufs, if you set up btrfs per say: http://serverascode.com/2014/06/09/docker-btrfs.html can you specify noatime there?