docker: “commit” requires a maximum of 2 arguments
I am trying to do a docker commit from the tutorial :
$ docker commit -m "Added json gem" -a "majid" 9d5a8e18f150 ouruser/sinatra:v2
but I got :
docker: "commit" requires a maximum of 2 arguments.
I googled it, could not find a solution.
2 Solutions collect form web for “docker: “commit” requires a maximum of 2 arguments”
I found the solution, it looks like docker does not like space :
$ docker commit -m "addedjsongem" -a "majid" 2d9666177b46 ouruser/sinatra:v2 sha256:c43d53ba92b9099af36026d02cc85d42c3e56365a07e8e3bf3196723eca53877
I had the same problem.
I have copied instructions from web page to docker. The problem is the character
", because is not same.
When I typed
" in terminal (not copied), all works fine.
I hope this solves this!