mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 12:03:33 +00:00
feat: set container hostname equal to container name
This commit is contained in:
@@ -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