runThe run section encapsulates instructions related to launching main process
in the container including: cmd, entrypoint, user and workdir.
All subsections are described later in this paragraph.
Below you can find full example that uses every possible option.
run:
cmd:
- "argument1"
- "argument2"
entrypoint:
- "/opt/eap/bin/wrapper.sh"
user: "alice"
workdir: "/home/jboss"
cmdCommand that should be executed by the container at run time.
run:
cmd:
- "some cmd"
- "argument"
entrypointEntrypoint that should be executed by the container at run time.
run:
entrypoint:
- "/opt/eap/bin/wrapper.sh"
userSpecifies the user (can be username or uid) that should be used to launch the main process.
run:
user: "alice"
workdirSets the current working directory of the entrypoint process in the container.
run:
workdir: "/home/jboss"