Add docker_create_options command, so that config files can specify additional options for docker create command.
This commit is contained in:
parent
488dedb74e
commit
d7052998c8
@ -246,7 +246,8 @@ config = {
|
||||
"cwd": os.getcwd(),
|
||||
"tty": sys.stdout.isatty(),
|
||||
"log": log,
|
||||
"user_init_command": []
|
||||
"user_init_command": [],
|
||||
"docker_create_options": []
|
||||
}
|
||||
|
||||
# load config from files
|
||||
@ -321,7 +322,7 @@ except Exception:
|
||||
docker_create(
|
||||
image_name,
|
||||
container_name,
|
||||
DOCKER_CREATE_OPTIONS + create_x11_mapping() + expand_user_volumes(user_volumes),
|
||||
DOCKER_CREATE_OPTIONS + config.get("docker_create_options", []) + create_x11_mapping() + expand_user_volumes(user_volumes),
|
||||
BACKGROUND_COMMAND, { OTHERWORLD_LABEL: user }
|
||||
)
|
||||
container = docker_inspect(container_name)[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user