About 48,400,000 results
Open links in new tab
  1. dockerfile - How do I set environment variables during the "docker ...

    When building a Docker image from the commandline, you can set ARG values using –build-arg: $ docker build --build-arg some_variable_name=a_value Running that command, with the …

  2. How can I pass a list as a command-line argument with argparse?

    I am trying to pass a list as an argument to a command line program. Is there an argparse option to pass a list as option? parser.add_argument('-l', '--list', type=list, acti...

  3. c++ - What does int argc, char *argv [] mean? - Stack Overflow

    The variables are named argc (argument count) and argv (argument vector) by convention, but they can be given any valid identifier: int main(int num_args, char** arg_strings) is equally valid.

  4. python - Use of *args and **kwargs - Stack Overflow

    The syntax is the * and **. The names *args and **kwargs are only by convention but there's no hard requirement to use them. You would use *args when you're not sure how many …

  5. docker - Using ARG and ENV in Dockerfile - Stack Overflow

    Feb 28, 2020 · ARG before the first FROM are only useful to allow variables in the FROM line and to supply defaults, but can't be used otherwise. This is further discussed under Understand …

  6. Argparse: Required arguments listed under "optional arguments"?

    Parameters starting with - or -- are usually considered optional. All other parameters are positional parameters and as such required by design (like positional function arguments). It is possible …

  7. Python Argparse conditionally required arguments - Stack Overflow

    Sep 2, 2014 · Here is a simple and clean solution with these advantages: No ambiguity and loss of functionality caused by oversimplified parsing using the in sys.argv test. No need to …

  8. How to define build-args in docker-compose? - Stack Overflow

    Warning for later people: for passwords, you might consider using a secret manager (Vault, k8s secrets, aws sms, docker swarm secrets) instead of a build arg to avoid security breaches. A …

  9. docker build with --build-arg with multiple arguments

    According to "docker build --help" the --build_arg is described as a list. it isn't really specifying a list if I have to repeat the entire argument over and over with a single value each time.

  10. How to get an environment variable value into Dockerfile during …

    Mar 19, 2019 · The ARG defines a variable to be used inside the dockerfile in subsequent commands. The ENV defines an environment variable which is passed to the container.