]> granicus.if.org Git - jq/commitdiff
Avoid passing '/bin/bash' as default argument to docker run 938/head
authorDavid Tolnay <dtolnay@gmail.com>
Sat, 5 Sep 2015 19:59:54 +0000 (12:59 -0700)
committerDavid Tolnay <dtolnay@gmail.com>
Sat, 5 Sep 2015 20:03:01 +0000 (13:03 -0700)
Previously:

```
$ docker run dbdc663dabc8
jq: error: syntax error, unexpected '/', expecting $end (Unix shell quoting issues?) at <top-level>, line 1:
/bin/bash
jq: 1 compile error
$ docker run --entrypoint /bin/echo dbdc663dabc8
/bin/bash
```

Now:

```
$ docker run e36393e8c15e
jq - commandline JSON processor [version 1.5rc2-77-g9a3fe9e]
Usage: /usr/local/bin/jq [options] <jq filter> [file...]

jq is a tool for processing JSON inputs, applying the
...
```

Dockerfile

index 681ca29700a90edca13ab9c7d4bf093fc56010a2..094dc5103298f49ee204fc9611450a64ef5ef416 100644 (file)
@@ -50,3 +50,4 @@ RUN apt-get update && \
     rm -rf /var/lib/apt/lists/* /var/lib/gems
 
 ENTRYPOINT ["/usr/local/bin/jq"]
+CMD []