Docker Community Forums

Share and learn in the Docker community.

Docker create with --storage-opt fails

I am trying to build a graph driver and wanted to leverage the storage-opt to pass info to the new driver.
however, when I test if this is possible on my setup i got:

docker run -i -t ubuntu --storage-opt size=1G
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused “exec: “–storage-opt”: executable file not found in $PATH”.

any reason why?


Image name (ubuntu) always is the last argument preceding the exec-ed command.

You want:

docker run -i -t --storage-opt size=1G ubuntu

Thanks, missed that.