Files
docker-cli/cli/command/container
Sebastiaan van Stijn 190dac77bd container: validate --pull option on create and run
Before this change, specifying the `--pull` flag without a value, could
result in the flag after it, or the positional argument to be used as
value.

This patch makes sure that the value is an expected value;

    docker create --pull --rm hello-world
    docker: invalid pull option: '--rm': must be one of "always", "missing" or "never".

    docker run --pull --rm hello-world
    docker: invalid pull option: '--rm': must be one of "always", "missing" or "never".

    docker run --pull hello-world
    docker: invalid pull option: 'hello-world': must be one of "always", "missing" or "never".

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-06-28 13:58:50 +02:00
..
2022-05-12 13:25:15 +02:00
2017-10-26 12:21:02 -04:00
2022-06-27 11:14:23 +02:00
2022-05-13 20:50:19 +02:00
2022-03-14 15:18:48 +01:00
2022-03-26 20:21:00 +01:00
2022-03-26 20:21:00 +01:00
2021-05-24 19:37:53 +01:00
2021-11-05 18:10:51 +01:00
2022-05-02 14:23:07 +02:00
2018-05-11 16:49:43 -07:00