InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search
  • Home
  • > Kubernetes

Mac docker minikube kubernetes – how to get shell access to container

on Jan 1, 2023

In case you are running a docket and minikube or some other kubernetes, here are ways to ssh to a container:

  1. To ssh to a pod (use -c container-name in case pod have multiple containers)
    kubectl exec –stdin –tty pod-name — /bin/bash
    or
    kubectl exec -it pod-name -- /bin/bash
  2. ssh to minikube container using minikube
    minikube ssh
  3. ssh to minikube container using docker
    docker exec -it minikube /bin/bash

Suggested posts:

  1. Docker how to add a user to group docker on Linux
  2. node – how to find source file location of a module
  3. Docker container – handy commands
  4. Mac kubernetes – create two container pod with shared volume
  5. Chrome extension tutorial – access active page dom
  6. Linux – find top directories by used disk size (excluding size of subdirectories)
  7. Mac – enable and use kubernetes in docker
  8. minikube kubernetes – how to access specific pod IP endpoint using curl
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Kubernetes, Mac Docker, Minikube
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress