Skip to content

Commit

Permalink
Restore port 5001 when accessing docker registry from host.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Jul 27, 2023
1 parent 49e9530 commit d2d5d3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client-programs/pkg/cmd/docker_workshop_deploy_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions client-programs/pkg/cmd/workshop_publish_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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",
)

Expand Down

0 comments on commit d2d5d3b

Please sign in to comment.