Closed koorchik closed 3 years ago
I have rollbacked default runtime to "runc" but the issue with docker-compose remains. Possibly, something happened during sysbox installation (ubuntu 20.04). Trying to find the cause of the issue
With "runc" as a default, everything works after reboot. I've tried to switch to "sysbox-runc" again and have the same issue again.
I will appreciate any help with that.
Hi @koorchik , thanks for giving Sysbox a shot.
I think the issue you are reporting may have been fixed recently via this commit:
https://github.com/nestybox/sysbox-runc/commit/bed8a8340261ed856e334ea8bd4cd303c61e151d
We've not yet generated a packaged release with this commit (we are planning to generate one in a few weeks), but in the meantime you can easily build Sysbox from source as described here:
https://github.com/nestybox/sysbox/blob/master/docs/developers-guide/build.md
If you can, give it a shot.
I have rollbacked default runtime to "runc" but the issue with docker-compose remains. Possibly, something happened during sysbox installation (ubuntu 20.04). Trying to find the cause of the issue
This I can't explain and should not have occurred. If you could copy-paste your /etc/docker/daemon.json
after installing Sysbox, that may give us a clue.
@koorchik, i just went ahead and reproduced the two issues that you reported above:
$ docker inspect docker-compose-issue_ubuntu_1
...
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},
...
Let us know if any question.
Btw @koorchik, just in case you are not aware, if you upgrade docker-compose to 1.27+ you will be able to make use of the 'runtime' flag to specify the runtime that you want to utilize ...
version: '3.7'
services:
web:
image: nginx:alpine
runtime: sysbox-runc
ports:
- "8000:80"
After building and installing sysbox from the sources everything works just fine. Thank you!
Btw @koorchik, just in case you are not aware, if you upgrade docker-compose to 1.27+ you will be able to make use of the 'runtime' flag to specify the runtime that you want to utilize ...
version: '3.7' services: web: image: nginx:alpine runtime: sysbox-runc ports: - "8000:80"
Big thanks for the runtime snippet. I was browsing the docker-compose file specs looking for the possibility of specifying the runtime argument, but I couldn't find it anywhere...
Found it in the Version 2 specs, but then I wonder if it will work with Version 3.x
Found it in the Version 2 specs, but then I wonder if it will work with Version 3.x
I believe the runtime
clause was present in V2, then was inadvertently removed in V3, and later added back. But I've not done a proper investigation, just going by recollection.
Yep it seems like with docker-compose v2.x
and with file version v3.8
it seems like one can configure the required runtime for a service.
With docker run command everything works great but nothing works with docker-compose.
Ducker run works:
I've configured sysbox-runc as a default runtime.
docker inspect shows that everything find
Docker-compose does not work:
docker-compose.test.yml
I have tried to run the command from the root but it changes nothing.