remove --replace, conflicting w. --rm
This commit is contained in:
parent
5dfcf87ce4
commit
5cf7491bc4
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ function startContainer() {
|
|||
log d "Starting container '${1}'"
|
||||
readarray -t additional_ports <<< "$(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} 'additional_ports[]')"
|
||||
[[ ${#additional_ports} -gt 0 ]] && log d "Starting with additional ports: ${additional_ports[@]}"
|
||||
podman run --restart "unless-stopped" --replace --name "${1}" --userns=keep-id:uid=1000 --rm -it -d --network "${5}" -p $([[ -n "${4}" ]] && echo ${4}:)${3}:25565 $([[ ${#additional_ports} -gt 0 ]] && for port in "${additional_ports[@]}"; do echo "-p $([[ -n ${4} ]] && echo ${4}:)${port}:${port}"; done) -v $(getValueByKey 'PODMAN_DIRECTORY')/${1}/data:/var/server "${2}" java -Dcom.mojang.eula.agree=true -Xmx$(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} 'maxMemory')m -jar /var/exec/server.jar --nogui --port 25565
|
||||
podman run --replace --name "${1}" --userns=keep-id:uid=1000 --rm -it -d --network "${5}" -p $([[ -n "${4}" ]] && echo ${4}:)${3}:25565 $([[ ${#additional_ports} -gt 0 ]] && for port in "${additional_ports[@]}"; do echo "-p $([[ -n ${4} ]] && echo ${4}:)${port}:${port}"; done) -v $(getValueByKey 'PODMAN_DIRECTORY')/${1}/data:/var/server "${2}" java -Dcom.mojang.eula.agree=true -Xmx$(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} 'maxMemory')m -jar /var/exec/server.jar --nogui --port 25565
|
||||
[[ $? -eq 0 ]] && log s "Container '${1}' started!"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue