Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting “/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu-22.04/8f9726c0fa16ede4442e75601e319c0a2b77749d8a7c8f163db201154033ce4a” to rootfs at “/etc/prometheus/prometheus.yml”: create mountpoint for /etc/prometheus/prometheus.yml mount: cannot create subdirectories in “/var/lib/docker/rootfs/overlayfs/5ae317fd1f27c602075219f7fb0a0adfbb820a836446dc727f6de9bdd1623b96/etc/prometheus/prometheus.yml”: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
PS
The error message is common and you can find that on the forum. It was always what it said, but you haven’t shared how you create the container only a command in the title indicating that is a docker command, but it isn’t . That is probably a Laravel project.
If you didn’t have the right folders and files where expected to be, docker could create folders automatically where you should have had files so you mount a folder onto a file as the error message suggests.