DEV Community

Livio Ribeiro
Livio Ribeiro

Posted on

3 1

Solving minishift fresh instance problems

When I started working with minishift, I did not have much experience with Openshift. I was struggling with some problems and I had no idea what was going on. These were the problems:

  • Builds failed to push to registry
  • Deployments got stuck when pulling image
  • Could not access an application via a Route
  • Could not log in to the web console as administrator

The first three problems were caused by the "docker-registry" and "router" deployments on the "default" namespace that failed to start.

The solution to these problems is quite simple and involve just a few commands on the terminal:

# login first as admin user
oc login -u system:admin
# restart "docker-registry"
oc -n default rollout latest dc/docker-registry
# restart "router"
oc -n default rollout latest dc/router
# allow "admin" user to log in to the web console
oc adm policy add-cluster-role-to-user cluster-admin admin
Enter fullscreen mode Exit fullscreen mode

Now you can work with minishift with no more problems!

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more