Merged
Conversation
67b17ee to
0f84deb
Compare
added 6 commits
March 25, 2025 11:05
3c18acd to
c72417f
Compare
mateoflorido
approved these changes
Apr 3, 2025
Member
mateoflorido
left a comment
There was a problem hiding this comment.
Great, thanks for adding support for Noble!
| series: {{ s }} | ||
| constraints: arch=amd64 | ||
| {% endfor %} No newline at end of file | ||
| constraints: arch=amd64 virt-type=virtual-machine |
Member
There was a problem hiding this comment.
Just out of curiosity, why the charm needs a VM now?
Author
There was a problem hiding this comment.
it's probably just force of habit now for me to avoid lxd priviledged containers. The docker-registry charm actually runs the registry in a docker container on the machine. maybe it's not necessary... would you like me to remove this and see how things go without it?
Author
There was a problem hiding this comment.
yep, @mateoflorido -- the reason this was there is now clear:
i had issues running in lxd on noble:
2025-04-03 16:11:07 WARNING unit.docker-registry-noble/0.install logger.go:60 docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error jailing process inside rootfs: pivot_root .: permission denied: unknown.
2025-04-03 16:11:07 ERROR unit.docker-registry-noble/0.juju-log server.go:326 Could not create new container: registry
2025-04-03 16:11:07 ERROR unit.docker-registry-noble/0.juju-log server.go:326 Hook error:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-docker-registry-noble-0/.venv/lib/python3.12/site-packages/charms/reactive/__init__.py", line 74, in main
bus.dispatch(restricted=restricted_mode)
File "/var/lib/juju/agents/unit-docker-registry-noble-0/.venv/lib/python3.12/site-packages/charms/reactive/bus.py", line 390, in dispatch
_invoke(other_handlers)
File "/var/lib/juju/agents/unit-docker-registry-noble-0/.venv/lib/python3.12/site-packages/charms/reactive/bus.py", line 359, in _invoke
handler.invoke()
File "/var/lib/juju/agents/unit-docker-registry-noble-0/.venv/lib/python3.12/site-packages/charms/reactive/bus.py", line 181, in invoke
self._action(*args)
File "/var/lib/juju/agents/unit-docker-registry-noble-0/charm/reactive/docker_registry.py", line 36, in start
layer.docker_registry.start_registry()
File "/var/lib/juju/agents/unit-docker-registry-noble-0/charm/lib/charms/layer/docker_registry.py", line 525, in start_registry
subprocess.check_call(cmd)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker', 'run', '-d', '-p', '5000:5000', '-p', '5001:5001', '--restart', 'unless-stopped', '-v', '/etc/docker/registry/config.yml:/etc/docker/registry/config.yml', '-v', '/srv/registry:/var/lib/registry', '--name', 'registry', 'registry:2']' returned non-zero exit status 126.6c2ccdf to
c72417f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details