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 link to existing container or image at build
  • Using the Spotify Maven Docker plugin, how can I change the file permissions of a resource that I add to a Docker container?
  • How to get the container Id of the running container using docker-java?
  • Ember + Docker slow during transpilation
  • How to connect to local process from docker
  • Why does Docker build take long time in “Sending context to daemon” step?
  • docker: "commit" requires a maximum of 2 arguments.
    

    I googled it, could not find a solution.
    Thanks.

  • Docker in production
  • How to run same docker images twice
  • PDO connection error when running PHINX migration on a Docker Container
  • Share folder from docker container to host
  • Restoring a local pg_dumpall in a docker container
  • Why this docker file is not running with a shell script?
  • 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!

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