# Start dockerd on a read only mounted disk - fails due missing key.json file

**URL:** <https://forums.docker.com/t/start-dockerd-on-a-read-only-mounted-disk-fails-due-missing-key-json-file/58471>\
**Category:** Feature Requests\
**Created:** [September 14, 2018, 11:56am UTC](https://forums.docker.com/t/start-dockerd-on-a-read-only-mounted-disk-fails-due-missing-key-json-file/58471 "2018-09-14T11:56:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neeo](https://avatars.discourse-cdn.com/v4/letter/n/b5ac83/32.png) [@neeo](https://forums.docker.com/u/neeo)\
**Post date:** [September 14, 2018, 11:56am UTC](https://forums.docker.com/t/start-dockerd-on-a-read-only-mounted-disk-fails-due-missing-key-json-file/58471/1 "2018-09-14T11:56:02Z")

</div>

Hi

I try to start dockerd on a system with read only mounted disk, which results in this error

```auto
Error starting daemon: Error saving key file: open /etc/docker/.tmp-key.json066578129: read-only file system

```

There are a couple of options to define the location of daemon.json, tls certificate files etc. but no setting to define the location of the key.json.

The machine has rw mounted partitions - so what I need is to select another file path.

Is this possible?

Thanks and cheers

---

<div class="post-metadata">

**Author:** ![metux](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@metux](https://forums.docker.com/u/metux)\
**Post date:** [March 28, 2019, 12:02pm UTC](https://forums.docker.com/t/start-dockerd-on-a-read-only-mounted-disk-fails-due-missing-key-json-file/58471/2 "2019-03-28T12:02:57Z")

</div>

Have you tried mounting an overlay (into ramfs) ontop of /etc ?  
That way the directory becomes writable - writes go into tmpfs, so any changes are lost on reboot.

–mtx
