apx icon indicating copy to clipboard operation
apx copied to clipboard

Bug: Broken images from DockerHub makes Apx containers unusable

Open sayber opened this issue 2 years ago • 21 comments

the APX package does not work =( Clean system, just installed

doc@vanilla:~$ apx init
⣾ Creating container...⌬ Apx :: error creating container: exit status 125

sayber avatar Jan 31 '23 21:01 sayber

I was just about to open an issue on this, as I'm getting the same error on a fresh install.

rhcalderon avatar Jan 31 '23 21:01 rhcalderon

also getting this issue too

phaon1 avatar Jan 31 '23 21:01 phaon1

same here, installed it twice in virtual box and both times I had this issue

Andre-Capjoy avatar Jan 31 '23 21:01 Andre-Capjoy

Installed on two different laptops. The problem remains

sayber avatar Jan 31 '23 22:01 sayber

i was able to create a void sub system. still cant create others

phaon1 avatar Jan 31 '23 22:01 phaon1

arch also worked. havent tested others yet but i know that the ubuntu sub system still gives exit code 125

phaon1 avatar Jan 31 '23 22:01 phaon1

Does it work using the apt flag?

mirkobrombin avatar Feb 01 '23 06:02 mirkobrombin

@mirkobrombin "apk install" doesn't work for me, "apk install --apt*" doesn't work

sayber avatar Feb 01 '23 10:02 sayber

Does it work using the apt flag?

no it doesnt

phaon1 avatar Feb 01 '23 11:02 phaon1

im not able to create a void sub system when using the flag but when i create one from the control center it works. ubuntu sub system doesnt work on either though

phaon1 avatar Feb 01 '23 11:02 phaon1

~~There is an issue with Ubuntu Registry Image~~. I had the same issue reported it in #dev.

kbdharun avatar Feb 01 '23 12:02 kbdharun

doesn't just affect ubuntu for me though, at least when using apx and not using the vanilla control center

phaon1 avatar Feb 01 '23 12:02 phaon1

doesn't just affect ubuntu for me though, at least when using apx and not using the vanilla control center

Oops, I forgot to edit the above comment, I wrote it this morning 😅 .

The issue occurs when a registry/docker image isn't pulled successfully. I had it with Ubuntu, but it could happen to any container too. Not sure what the cause of this issue is.

My Discord Message in #dev

kbdharun avatar Feb 01 '23 12:02 kbdharun

ah, seems like a registry issue then, unfortunate

phaon1 avatar Feb 01 '23 12:02 phaon1

So just force re-pulling should make it works. I am not sure if we can automate this in Apx.

mirkobrombin avatar Feb 01 '23 12:02 mirkobrombin

So just force re-pulling should make it works. I am not sure if we can automate this in Apx.

I will try and let you know if repulling the image works.

Update: Nope it doesn't work. Attaching the error image I shared in #dev in Discord. (We are investigating this in #dev)

Error Image

kbdharun avatar Feb 01 '23 12:02 kbdharun

does not work for me ether

TheCorruptCat avatar Feb 01 '23 13:02 TheCorruptCat

I was able to make it work! I had to create ~/.config/containers/registries.conf with :

# Note that changing the order here may break tests.
unqualified-search-registries = ['docker.io', 'quay.io', 'registry.fedoraproject.org']

[[registry]]
# In Nov. 2020, Docker rate-limits image pulling.  To avoid hitting these
# limits while testing, always use the google mirror for qualified and
# unqualified `docker.io` images.
# Ref: https://cloud.google.com/container-registry/docs/pulling-cached-images
prefix="docker.io"
location="mirror.gcr.io"

# 2020-10-27 a number of images are not present in gcr.io, and podman
# barfs spectacularly when trying to fetch them. We've hand-copied
# those to quay, using skopeo copy --all ...
[[registry]]
prefix="docker.io/library"
location="quay.io/libpod"

(content from https://github.com/containers/podman/blob/main/test/registries.conf)

then apx init

On the long run, not sure if it's the right solution... (old images - ubuntu focal)

nothing-fr avatar Feb 01 '23 16:02 nothing-fr

ok i was able to create a void container using apx. i guess i was using the flags wrong as i was putting --xbps at the end of the command instead of apx --xbps install etc. ubuntu still wont work so i guess this actually might just be an issue with the ubuntu container

phaon1 avatar Feb 01 '23 16:02 phaon1

I don't know why, but it seems to be working again without modifications... strange... maybe a fix on the docker registry side...

nothing-fr avatar Feb 01 '23 18:02 nothing-fr

I don't know why, but it seems to be working again without modifications... strange... maybe a fix on the docker registry side...

yep its working again for me

phaon1 avatar Feb 01 '23 18:02 phaon1

This issue appears to no longer be an issue as of apx version 2. If the issue persists in the latest build, please feel free to reopen this issue.

jardon avatar Oct 15 '24 16:10 jardon