Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unable to write to Docker image

Featured Replies

Unraid ver: 7.1.2

Hello everyone,

I recently upgraded to 7.1.2 and since then I have been experiencing issues with Docker.

I was watching something on Jellyfin and the stream crashed, so I logged into Unraid and I found the Docker tab with a message saying "Docker service failed to start" and that there were no containers installed.

I read some instructions and watched a few videos on Youtube regarding the issue and increased the size of the Docker image to 50GB and rebooted - the same issue happened again.

When the Docker service was running I looked at all of the paths to ensure they were okay and as far as I could see they were. So now I am stuck.

I had the server switched off for a few days and I turned it back on today and the Docker service still isn't running. I ran Fix Common Problems and got the "Unable to write to Docker image" message.

I would really appreciate some help and advice if possible.

Thanks

node304-diagnostics-20250526-1732.zip

Edited by Pequod44
Removed unnecessary attachment

Solved by JorgeB

  • Community Expert

The usual reason for filling docker.img is an application writing to a path that isn't mapped.

Your mappings can look fine, but if the application is writing to a path not in a container mapping, it is a path inside docker.img

  • Author

I have rebooted the server and Docker started, unfortunately cannot open any of the containers to change the internal paths.

I'm also seeing an "Unable to write to cache" message now in Fix Common Problems.

I've attached some screenshots which might be helpful which contain some paths in the containers.

bazarr.png

Docker.png

jellyfin.png

lidarr.png

radarr.png

sonarr.png

What does your server log look like, and which version did you upgrade from? Is your cache drive or Docker running on an NVMe drive?

  • Author

I've got a 1TB WD SSD as the cache drive, I was previously using version 7.0.1. I've attached a screenshot the array as well.

array.png

  • Community Expert

3 hours ago, Pequod44 said:

"Unable to write to cache" message now

Post new diagnostics

  • Community Expert

Btrfs is detecting a lot of data corruption, start by running memtest.

Also, assuming you are not using it, disable Bluetooth tin the board BIOS, it's spamming the log.

  • Author

Okay, well I went in an upgraded the Motherboard bios, ran memtest a couple of times and got passes each time.

I also disabled the onboard WAN device (only option I could see which I think would control the Bluetooth) in the bios, hopefully that will stop it from spamming the log.

Ran another set of diagnostics as well which I've attached.

This time, I was able to log into the containers in Docker, how long they will stay available for is another question I suppose.

PXL_20250527_162634335.MP.jpg

node304-diagnostics-20250527-1734.zip

  • Community Expert

Click the pool, then "Scrub" and post the results from the GUI.

  • Author
UUID:             1fadd8d3-16ae-45cf-b0e6-00fc510e4de2
Scrub started:    Tue May 27 18:10:04 2025
Status:           aborted
Duration:         0:00:00
Total to scrub:   219.07GiB
Rate:             0.00B/s
Error summary:    no errors found
  • Author

Pushing the scrub button in the GUI doesn't seem to do very much, the screen just blinks and the time updates and it says status aborted.

I've ran the first command in the link above and it's shown a lot of corruption errors.

Would running a scrub from the terminal be more effective?

root@node304:~# btrfs dev stats /mnt/cache

[/dev/sdb1].write_io_errs 0

[/dev/sdb1].read_io_errs 0

[/dev/sdb1].flush_io_errs 0

[/dev/sdb1].corruption_errs 60350

[/dev/sdb1].generation_errs 0

  • Author
3 hours ago, JorgeB said:

Since no error were found, recommend resetting the stats and then monitoring for any future errors:

https://forums.unraid.net/topic/46802-faq-for-unraid-v6/page/2/#findComment-700582


Thank you for the link, I have installed the User scripts, reset the stats and added the script for btfrs hourly monitoring.

Since the docker service is technically running at the moment, I've included a screenshot of the volume mappings in case it is helpful. I can't open any of the containers, the web ui's just don't load atm.

Since the using the scrub button earlier, the Unable to write to cache drive error in Fix Common Problems has gone and I can access the data share on my main PC also.

docker running.png

  • Community Expert
12 hours ago, Pequod44 said:

Would running a scrub from the terminal be more effective?

It should be the same, if the scrub is aborting, there's an issue with the pool.

  • Author

I checked it this morning and there were several messages from the User Scripts, still getting errors for some reason.

Id Path      Write errors Read errors Flush errors Corruption errors Generation errors
-- --------- ------------ ----------- ------------ ----------------- -----------------
 1 /dev/sdb1            0           0            0               310                 0
  • Community Expert

Were you able to scrub the pool?

  • Author

It still does the same thing, ran the scrub from the GUI and from the terminal. GUI blinks and terminal reports started and then stops immediately.

UUID:             1fadd8d3-16ae-45cf-b0e6-00fc510e4de2
Scrub started:    Wed May 28 12:10:22 2025
Status:           aborted
Duration:         0:00:00
Total to scrub:   219.07GiB
Rate:             0.00B/s
Error summary:    no errors found
  • Community Expert
  • Solution
30 minutes ago, Pequod44 said:

It still does the same thing

4 hours ago, JorgeB said:

if the scrub is aborting, there's an issue with the pool.

You should backup and reformat.

  • Author
1 hour ago, JorgeB said:

You should backup and reformat.

Thanks for the advice. Just to be clear (I'm afraid of making a mistake), I should be making a backup of my Flash drive?

I'm assuming that I don't want to make a backup of Appdata or anything because I just want a fresh start with Docker etc. Best practice to take a screenshot of the main tab for drive assignments?

Can I reformat from Unraid, or am I best taking the drive out and reformatting it on another machine?

(apologies for the silly questions)

  • Community Expert
36 minutes ago, Pequod44 said:

I should be making a backup of my Flash drive?

No, of the pool that is failing to scrub.

  • Author

Thanks for the help 👍.

Formatted the cache drive and I've started afresh with Docker. It's running okay at the minute so fingers crossed it will continue.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.