Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

How to specify a dns when running a new pod? #700

Open
xuchenhao001 opened this issue Feb 2, 2018 · 2 comments
Open

How to specify a dns when running a new pod? #700

xuchenhao001 opened this issue Feb 2, 2018 · 2 comments

Comments

@xuchenhao001
Copy link

xuchenhao001 commented Feb 2, 2018

When I run hyperctl run, If there is a way to specify a new dns for vm instead of default host dns?

@gnawux
Copy link
Member

gnawux commented Feb 2, 2018

when you run it with a pod file, you could specify the dns field in the pod spec, and it is a slice of string ([]string), you may specify a list of nameservers

@xuchenhao001
Copy link
Author

So can I specify my pod's dns like hyperctl run --dns=10.96.0.10 -t ubuntu:16.04?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants