-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
distrobox assemble create -n vis fails #1301
Comments
Hi @mcepl to be clear 1 - you use this ini file [vis]
image="registry.opensuse.org/home/mcepl/moldavite/containers/opensuse/vis-master:latest"
pull=true
replace=true 2 - you do then when you run the exported binary, you get an error? |
Now this works, but if I run later Or do you have any other means how to update a container? I was thinking about this script as an alternative, but I would prefer to stay with already existing #!/bin/bash
# shellcheck disable=SC2086
set -eux
root='' # false
usage()
{
# Display Help
echo "Upgrade image of a distrobox container"
echo
echo "Syntax: distrobox-pull [-h] NAME"
echo "options:"
echo "h Print this Help."
echo
exit 1
}
while getopts "hr" option; do
case $option in
h) # display Help
usage
;;
r) # we will use root container
root=1
;;
\?) # Invalid option
echo "Error: Invalid option"
exit 1
;;
esac
done
shift $((OPTIND - 1))
if [ $# -lt 1 ]
then
usage
fi
NAME=$1
if [ $root ] ; then
sudo podman ps|awk '/"'$NAME'"/ { print $0 }'
IMG_NAME=$(sudo podman ps|awk '$NF == "'$NAME'" {print $2}')
sudo podman stop "$NAME"
distrobox rm --root "$NAME"
distrobox create --root --pull --name "$NAME" --image "$IMG_NAME"
else
podman ps|awk '/"'$NAME'"/ { print $0 }'
IMG_NAME="$(podman ps|awk '$NF == "'$NAME'" {print $2}')"
podman stop "$NAME"
distrobox rm "$NAME"
distrobox create --pull --name "$NAME" --image "$IMG_NAME"
fi And yes this doesn’t work either, because it breaks on |
Describe the bug
In other window inside of the distrobox with openSUSE/Tumblweed:
To Reproduce
See above
Expected behavior
editor should start from within the container
Logs
Attach also the output of
podman logs
ordocker logs
, possibly with--latest
flagvis-log.txt
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: