Method: Kamal::Commands::Accessory#execute_in_new_container

Defined in:
lib/kamal/commands/accessory.rb

#execute_in_new_container(*command, interactive: false) ⇒ Object



63
64
65
66
67
68
69
70
71
72
# File 'lib/kamal/commands/accessory.rb', line 63

def execute_in_new_container(*command, interactive: false)
  docker :run,
    ("-it" if interactive),
    "--rm",
    "--network", "kamal",
    *env_args,
    *volume_args,
    image,
    *command
end