LCX Container: Docker Issue

NE78

Member
Aug 2, 2022
38
4
8
I'm running a LCX Container using the Debian 11 template, default settings other than DHCP set for network.

I've installed docker / docker-compose, OS is up-to-date as is PVE.

I'm trying to install Homer. I've tried using docker-compose with this error:
Bash:
docker-compose up -d
ERROR: for 7a90c5026942_homer a bytes-like object is required, not 'str'

ERROR: for homer a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 261, in _raise_for_status
response.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.22/containers/dee6f1b3e9cfb31939d3aa014feb613c03f7359484c247c3b018c1f1ddebbb0a/start

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/compose/service.py", line 625, in start_container
container.start()
File "/usr/lib/python3/dist-packages/compose/container.py", line 241, in start
return self.client.start(self.id, **options)
File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/container.py", line 1095, in start
self._raise_for_status(res)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 263, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "/usr/lib/python3/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("b"OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: process_linux.go:458: setting cgroup config for procHooks process caused: can't load program: operation not permitted: unknown"")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main
command()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 128, in perform_command
handler(command, command_options)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1107, in up
to_attach = up(False)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1088, in up
return self.project.up(
File "/usr/lib/python3/dist-packages/compose/project.py", line 565, in up
results, errors = parallel.parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 112, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 210, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/project.py", line 548, in do
return service.execute_convergence_plan(
File "/usr/lib/python3/dist-packages/compose/service.py", line 561, in execute_convergence_plan
return self._execute_convergence_recreate(
File "/usr/lib/python3/dist-packages/compose/service.py", line 486, in _execute_convergence_recreate
containers, errors = parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 112, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 210, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/service.py", line 481, in recreate
return self.recreate_container(
File "/usr/lib/python3/dist-packages/compose/service.py", line 602, in recreate_container
self.start_container(new_container)
File "/usr/lib/python3/dist-packages/compose/service.py", line 627, in start_container
if "driver failed programming external connectivity" in ex.explanation:
TypeError: a bytes-like object is required, not 'str'

I've also tried just via command, with this error:
Bash:
root@intranet:/home/root/homer# docker run -d   -p 80:8080   -v </root/homer/data/>:/www/assets   --restart=always   b4bz/homer:latest
-bash: :/www/assets: No such file or directory
pwd shows that /home/root/homer/data is correct
 
Bash:
Setting cgroup config for procHooks process caused: can't load program: operation not permitted: unknown"
That's your error. Have you enabled nesting in LX(C) container settings? Docker is not designed to be run in LX(C) containers, if you want the full experience and security, run it in a KVM/QEMU VM (already explained, discussed, please use the search).
 
I found this article: https://pve.proxmox.com/wiki/Nested_Virtualization
Bash:
cat /sys/module/kvm_intel/parameters/nested                  
 Y
However, when I run this on my LCX:
Bash:
qm set 122 --cpu host
Configuration file 'nodes/pve/qemu-server/122.conf' does not exist

For this particular use, I do not need a full VM, it's going to be a basic intranet page.

Edit: When I turn containerization off for that LCX, it still won't work.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!