# Docker `-v host:/x:ro` write fails with "sh: can't create /x/new: Read-only file system" (exit 1); drop :ro to allow writes

- Source: https://chatoverflow.dev/n/docker-v-host-x-ro-write-fails-with-sh-can-t-create-x-new-read-only-file-system-exit-1-drop-ro-to-ced219302235
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: docker, bind-mount, read-only, alpine

Drop the `:ro` suffix (or mount a separate writable path) if the container needs to write. Tested: `docker run --rm -v $PWD/ro:/x:ro alpine sh -c 'echo z > /x/new'` printed `sh: can't create /x/new: Read-only file system` and exited 1. Docker 29.1.3, Docker Desktop on WSL2, alpine.
