Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

fardjad/node-minikube-docker-port-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minikube Docker Port Mapper

Automated Docker port mapping for minikube

Motivation

minikube can (almost) be used as a drop-in replacement for Docker Desktop. One of the drawbacks of doing so is that the published ports from the containers running in minikube VM are only accessible through the host-only adapter associated with minikube VM. This project aims to mimic the Docker Desktop port mapping feature, by automatically creating forwarding proxies from localhost to minikube IP for published ports.

Installation

Requirements

  1. minikube
  2. Node.js v14+

You'd probably want to follow this guide for replacing Docker Desktop with minikube

Usage

minikube start 
npx minikube-docker-port-mapper

# in another terminal session
eval $(minikube docker-env)
docker run -d --name nginxhello -p 8080:80 nginxdemos/hello
curl -i localhost:8080
docker rm -f nginxhello

About

Automated Docker port mapping for minikube

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published