diff --git a/client-programs/pkg/cmd/docker_workshop_deploy_cmd.go b/client-programs/pkg/cmd/docker_workshop_deploy_cmd.go index 9dfde5bf..4337e5d2 100644 --- a/client-programs/pkg/cmd/docker_workshop_deploy_cmd.go +++ b/client-programs/pkg/cmd/docker_workshop_deploy_cmd.go @@ -131,7 +131,7 @@ func (o *DockerWorkshopDeployOptions) Run(cmd *cobra.Command) error { return errors.New("this workshop is already running") } - if o.Repository == "localhost" { + if o.Repository == "localhost:5001" { err = registry.DeployRegistry() if err != nil { @@ -461,7 +461,7 @@ func (p *ProjectInfo) NewDockerWorkshopDeployCmd() *cobra.Command { c.Flags().StringVar( &o.Repository, "repository", - "localhost", + "localhost:5001", "the address of the image repository", ) c.Flags().BoolVar( diff --git a/client-programs/pkg/cmd/workshop_publish_cmd.go b/client-programs/pkg/cmd/workshop_publish_cmd.go index 67ec964a..ca942894 100644 --- a/client-programs/pkg/cmd/workshop_publish_cmd.go +++ b/client-programs/pkg/cmd/workshop_publish_cmd.go @@ -53,7 +53,7 @@ func (p *ProjectInfo) NewWorkshopPublishCmd() *cobra.Command { return errors.New("workshop directory does not exist or path is not a directory") } - if o.Repository == "localhost" { + if o.Repository == "localhost:5001" { err = registry.DeployRegistry() if err != nil { @@ -74,7 +74,7 @@ func (p *ProjectInfo) NewWorkshopPublishCmd() *cobra.Command { c.Flags().StringVar( &o.Repository, "repository", - "localhost", + "localhost:5001", "the address of the image repository", )