mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 22:24:54 +00:00
feat: set container hostname equal to container name
This commit is contained in:
1 parent
342969b7f4
commit
137abde808
1 file changed
+1
@@ -42,6 +42,7 @@ func (cli *Client) CreateContainer(
|
|||||||
|
|
||||||
config := &container.Config{
|
config := &container.Config{
|
||||||
Cmd: spec.Container.Command,
|
Cmd: spec.Container.Command,
|
||||||
|
Hostname: containerName,
|
||||||
Image: spec.Container.Image,
|
Image: spec.Container.Image,
|
||||||
Labels: map[string]string{
|
Labels: map[string]string{
|
||||||
api.LabelServiceID: serviceID,
|
api.LabelServiceID: serviceID,
|
||||||
|
|||||||
Reference in new issue
Block a user