You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`ces-run` supports the following optional arguments under most runtimes:
357
+
Most container engines support the following arguments to `ces-run`:
349
358
350
359
- Use `--opt-file=<file>` to specify a file containing additional options to be passed to the runtime
351
360
- Use `--arg-file=<file>` to specify a file containing arguments to pass to the container command or entrypoint
352
361
- Use `--env-file=<file>` to specify a file containing environment variables which will be set inside the container
353
362
354
-
Containers that require a GPU can be run by adding the `--gpu` option. See `ces-run [<runtime>] --help` for all available options.
363
+
The Kubernetes engine does not support `--opt-file`. Containers that require a GPU can be run adding the `--gpu` option. See `ces-run --help`, and `ces-run <container-engine> --help` for all available options.
364
+
365
+
The `--dry-run` option can be useful when working with kubernetes, as it will print the generated job spec. This can then be saved and edited if configuration is needed, and manually applied with `kubectl apply -f <file>` as normal.
355
366
356
-
We recommend to test containers without network connection to best mimick their functionality inside the TRE, where the container will not be able to access the internet. With Podman, for example, this can be achieved by passing the option `--network=none` through the `opt-file`.
367
+
We recommend that containers are tested without network connection to best mimick their functionality inside the TRE, where the container will not be able to access the internet. With Podman, for example, this can be achieved by passing the option `--network=none` through the `opt-file`.
357
368
358
369
Once the container runs successfully in the test environment, it is ready to be used inside the TRE.
0 commit comments