-
Notifications
You must be signed in to change notification settings - Fork 37
Cloud Orchestrator can give hint to docker instances, that it's created by Cloud Orchestrator. #486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| func (m *DockerInstanceManager) createDockerContainer(ctx context.Context, user accounts.User) (string, error) { | ||
| config := &container.Config{ | ||
| AttachStdin: true, | ||
| Env: []string{"HANDLED_BY_CLOUD_ORCHESTRATOR=true"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you share the design doc for this? why is it needed? who is going to consume it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see you added b/383428636 in the PR's comments. Please add the bug to the commit message itself next time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What this env variable has to do with enabling vhost-user-vsock?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I mentioned from the PR description, google/android-cuttlefish#1721 consumes it.
Also resolving this conversation, since I think google/android-cuttlefish#1721 should be the better place to talk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, it's used in google/android-cuttlefish@d248bf8
Marking this as unresolved for now to avoid merging in this PR.
I'll follow up here, once discussion in google/android-cuttlefish#1721 is done.
| func (m *DockerInstanceManager) createDockerContainer(ctx context.Context, user accounts.User) (string, error) { | ||
| config := &container.Config{ | ||
| AttachStdin: true, | ||
| Env: []string{"HANDLED_BY_CLOUD_ORCHESTRATOR=true"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, it's used in google/android-cuttlefish@d248bf8
Marking this as unresolved for now to avoid merging in this PR.
I'll follow up here, once discussion in google/android-cuttlefish#1721 is done.
Context: b/383428636
This hint can be used by google/android-cuttlefish#1721.