InfoHeap
Tech tutorials, tips, tools and more
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. minikube kubernetes – how to access service IP endpoint using curl
  2. minikube kubernetes – how to access specific pod IP endpoint using curl
  3. Docker container – handy commands
  4. Mac m1 – How to Install Kubernetes with minikube
  5. Docker – how to rerun a container with different flags
  6. Run nginx in docker container
  7. Mac docker – create getting-started image and run container using it
  8. Mac – enable and use kubernetes in docker
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 | 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

Copyright © 2023 InfoHeap.

Powered by WordPress