Docker Machine Switch

preview_player
Показать описание
In this How To Code Well Docker Machine tutorial you will learn how to switch between Docker Machines via the Linux command line.
This tutorial also demonstrates how to create and use Linux aliases to manage docker machines.

In this tutorial I demonstrate how to install a virtual box driver and create a docker machine. I will then show how to list the machines that you have created

Don't like adverts?

Want to learn more about Docker? Peter Fisher is the author of Docker In Motion. This interactive online course will teach you the fundamentals of Docker

Learn more about Docker with these study books and video courses
=========================================

Tutorial with example code can be found at:

==== GET EARLY ACCESS TO FUTURE VIDEOS & TUTORIALS ====

======== RECOMMENDED PROGRAMMING RESOURCES ========

======== MY PROGRAMMING COURSES ========

======== WEB HOSTING DEALS ========

======== SUBSCRIBE TO THE NEWSLETTER ========

======== FOLLOW ME ========

======== MY TALKS ========

======== SUPPORT THE CHANNEL ========

======== VIDEO SETUP ========

#docker #containers #howtocodewell #learnToCode ## Become a channel member
Join the How to code well YouTube channel to get access to premium programming courses, tutorials and member perks
Рекомендации по теме
Комментарии
Автор

For aliases you can just use ~/.bash_aliases file. The main purpose of this file is just for having all the aliases you need in one place nicely organised.

BabaykaMoscow
Автор

try to use the following function in your .bashrc
dockSwitch2Host()
{
eval $(docker-machine env temp$1.sysadmin.local)
}


and just type dockSwitch2Host N in your terminal to switch to host tempN.sysadmin.local

IsmaelDJIBRIL
Автор

thks a lot
please
docker-machine ls is giving me a long list of command an explanation not the same outcome as u

yousfoss