Comments (10)
š
from rkt.
IIUC this is fixed by #214, right?
from rkt.
It would be nice to have a test for this :)
from rkt.
I would like systemd on the host to listen on a socket for socket activating the container. Then, when an incoming connection triggers the rkt pod to start, the file descriptor would be passed:
- from systemd on the host to rkt
- from rkt to stage1's init
- from init to systemd-nspawn
- from systemd-nspawn to systemd in the container
- from systemd in the container to the app
I am not sure #214 does everything and it would be nice to have a test for the complete sequence.
from rkt.
@alban I know this is an ancient bug but I'm trying to get this working. I feel like I'm super close but alas I cannot get it to work.
My question is, can you run your socket accepting daemon directly or do you have to do the systemd-inside-the-container-to-the-app dance?
The docs I've found on this are non-existant or very vague. When trying to pass in a socket what goes in the '--port' parameter of the rkt command line?
Thanks.
from rkt.
Hi!
There's an example in https://github.com/coreos/rkt/blob/master/Documentation/using-rkt-with-systemd.md#socket-activated-service. Have you tried following that?
If after that you still have problems please let us know!
from rkt.
Thanks @iaguis but I did look at that document. I forgot to mention that what I'd like is a container per connection. In other words I want a service named [email protected]
.
I did notice the following line on this re-read:
An application needs to be able to accept sockets from systemd's native socket passing interface in order to handle socket activation.
Can rkt not support passing in a socket and attaching it to the apps stdin/stdout? That's how the app currently works and I believe how all inetd started apps work.
from rkt.
Can rkt not support passing in a socket and attaching it to the apps stdin/stdout? That's how the app currently works and I believe how all inetd started apps work.
This is not supported at the moment :(
from rkt.
Well that would explain why I've been unsuccessfully banging my head against the wall. :( indeed.
Thanks for the tech support!
from rkt.
Np. Would you mind filing an issue about it?
from rkt.
Related Issues (20)
- update vendored "github.com/cznic/..."
- rkt-1.30.0 with lkvm stage1: builtin-run.c:412:28: error: ā%sā directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Werror=format-truncation=] HOT 1
- Self-built stage1 host image using wrong systemd path HOT 1
- [Question] Common procedures for dealing with crashes from docker containers in rkt HOT 2
- rkt container not running on raspberrypi 3
- Expired key for deb.asc files HOT 5
- tests: TestFetchNoStoreCacheControl fails on SemaphoreCI HOT 1
- rkt enter lacks isolation features HOT 2
- rkt can be tricked into executing helper binaries inside pods
- make unit-check fails HOT 1
- FYI: Archiving Rkt in CNCF HOT 2
- gc: Add --quiet flag
- Unable to fetch ubuntu 16.04 image
- Suggestion: Continuous Fuzzing
- rkt downloads and extracts every docker image layer
- rkt have some Problems with SELinux in Enforce Mode
- Can't specify tags in urls on official docker images HOT 1
- broken by Golang 1.13: extracttar error HOT 1
- rkt run docker's image mysql, error
- Ending and archiving the rkt project HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rkt.