This commit is contained in:
iwilltry42 2019-09-26 08:40:16 +02:00
parent 1fabe118fa
commit 80f5aa7d58

View File

@ -477,6 +477,7 @@ func AddNode(c *cli.Context) error {
* --image, -i * --image, -i
* The k3s image used for the k3d node containers * The k3s image used for the k3d node containers
*/ */
// TODO: use the currently running image by default
image := c.String("image") image := c.String("image")
// if no registry was provided, use the default docker.io // if no registry was provided, use the default docker.io
if len(strings.Split(image, "/")) <= 2 { if len(strings.Split(image, "/")) <= 2 {