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 Jenkins images login error
  • Docker container doesn't work properly on Azure WebApps for Linux, however it works on locally.
  • An core web API with swagger doesn’t work in Docker in Azure
  • Files in dir that is also a VOLUME?
  • Difference between environment in Dockerfile RUN and interactive shell on a running container?
  • docker-registry v2.2.0 S3 config not overwritten
  • docker: "commit" requires a maximum of 2 arguments.

    I googled it, could not find a solution.

  • Docker container keeps restarting
  • Nginx backend to one of 4 hosts in Docker Swarm
  • How to read files and stdout from a running Docker container
  • Invalid US-ASCII character using SASS
  • Multiple applications running simultaneously on a single Docker image
  • docker Container command '/hello' not found or does not exist after switching hard drive
  • 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

    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!

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.