mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 20:43:02 +02:00
board/common: fix issue where containers without network get network
Also, log the actual `podman create` arguments to the container log so we can see what the script actually does when customers report bizarre happenings with containers. Fixes #370 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -125,10 +125,11 @@ create()
|
||||
args="$args --dns-search=$domain"
|
||||
done
|
||||
else
|
||||
network="--net none"
|
||||
args="$args --network=none"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2048
|
||||
log "Calling podman create --name $name --conmon-pidfile=$pidfn $args $image $*"
|
||||
if podman create --name "$name" --conmon-pidfile="$pidfn" $args "$image" $*; then
|
||||
[ -n "$quiet" ] || log "Successfully created container $name from $image"
|
||||
rm -f "/run/containers/env/${name}.env"
|
||||
|
||||
Reference in New Issue
Block a user