GNS3 Talks: How to import Docker containers into GNS3: your own or others available on Docker Hub.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] [Applause] [Music] Gina story has supported docker containers since version 1.5 docker containers have various advantages over hume you and other virtualization platforms such as VMware Workstation or VirtualBox they essentially consume much less RAM and CPU resources when compared to traditional virtualization platforms have a look at my series of videos where I discuss docker containers open V switch open daylight and other emerging technologies if you want to have an overview of what a docker is I've link to that series of videos below this video in this video I'm going to show you how to add a docker container to gns3 when it's not available in the gns3 marketplace so let's say you create your own docker container or you've come across a docker container that you want to add to gns3 it's not available in the genus 3 marketplace that you'd like to edit to your genus 3 projects so how do you do that that's what I'm going to demonstrate in this video see here's an example turnkey clinics provide various pre-built Linux of virtual machines iso's VM decays and now docker containers that you can deploy these are pre-built Linux virtual machines or docker containers that allow you very quickly to spin up a service such as WordPress or a Joomla server or a file server or an open VPN server a domain controller and other options basically rather than having to download and then install a Linux operating system and then install and configure the application on the Linux operating system these are pre-built virtual machines or docker containers so here's one for WordPress and when I click on the docker link I'm shown the public repository for the turnkey WordPress docker container now this specific docker container has been made available in the gns3 marketplace but let's assume for the moment that it wasn't how would you add a new docker container to your genus tree topology when it's not available in the genus tree marketplace that's what I'm going to demonstrate in this video so going back I could download an OVA which is now downloading to my local computer which I could then import into genus 3 but rather than doing that I can simply do a docker pool and add the docker container to gns3 in this example I'm using genus 3 version 2.20 on a Mac the process however is very similar on Windows so to import the docker container go to genus 3 preferences go to docker under the docker heading we have docker containers and here are some docker containers that I've already got installed but in this example I'm going to click new to import a new docker container I'm going to run this docker VM on the genus 3 VM and click Next I could use an existing image but I'm not going to do that I'm going to do a pull from docker so this is the public repository that I copied and I'm simply going to paste it in as the image name and click Next how many network adapters does my docker container require I'm only going to add one and click Next now you can specify a start command the default command will be used if you leave this field empty I'm going to do that and click Next now you need to specify the console type choosing VNC for your container will run a VNC server listening on a port between this number and this number in my example I'm going to use telnet and click Next now we told that these variables will be passed to the container please read the container documentation to find out what our variables are used now in the documentation we told that we can configure environment variables that will be accessible within the container a lot of docker containers use this information for configuration so we could say something like Hello equals world in my example I'm not going to configure that I'm simply going to click finish and I'm going to click OK so under hosts I now have a turnkey Linux WordPress docker container available and I can drag it to the workspace and notice what happens genus 3 does a pull from docker and automatically downloads the docker container image so we see it saying pulling image turnkey Linux WordPress 14.2 and at this point you simply need to wait for the docker container to be pulled so wait for the process to complete okay so that's now been done I've successfully pulled the turnkey Linux of WordPress docker container from docker so that's the process of installing a docker container into gns3 now for this specific docker container additional configuration is required so what I'm going to do is drag an Ethernet switch on to the genus 3 workspace and I'm going to run it on the genus 3 vm I'm going to bring a net cloud into the topology I'm only going to use that as a DHCP server I'll bring a Firefox PC into the topology because I want to use a browser to access the WordPress server and I'll bring in a boon to PC into the topology I'm going to use the Ubuntu PC to SSH and configure the WordPress server so I'll connector the devices to the layer 2 switch and connect to the switch to the net cloud now in this example I'm going to edit the aboon - host to use DHCP but I'm not going to do that for the WordPress device some users of gns3 especially on Windows have had problems editing the network configuration in this manner so I'll show you an alternate way of doing that okay so now I can start up the Janissary topology and open up a console to the devices turn-key Linux server is booting up and making a number of changes so you can see that it's initializing creating SSH keys this depends on the docker container that you're using see has my boon to container ifconfig shows that the Ubuntu device has been allocated at this IP address the WordPress docker container however doesn't have an IP address so I'll edit Etsy network interfaces and I'll remove these lines to uncomment or to e0i Phase II to zero I need to DHCP and I'll save the file and then I'll say service networking restart to restart the networking service you can see that the device has received an IP address and to confirm that ifconfig shows us the IP address of the WordPress docker container so on this docker contain I'm going to set a password of gns3 and what I can do now is SSH to the WordPress server log in with my password and notice we are prompted with this information so on the turnkey Linux docker container have to do this initial configuration so I need to set a password I'm simply going to cetera this to gns3 password you need to do this configuration on the specific docker container to get WordPress running I'm not going to initialize hub services or receive critical alerts and I'm not going to install security updates so I'm now told that is the WordPress server is available on the site P address so in firefox will open up browser and browse to 191 68 122 196 and as you can see here we've now got a turnkey Linux WordPress site displayed so I could quit out of this it's a seiche session and go back to my bluetooth server so that was an example of how to add a bespoke or a new docker container to gns3 without using the gns3 marketplace i was able to do a pull to pull the docker container from docker added to my genus tree topology and then use it in my gene III network like any other device I hope you enjoyed this video if you did please like it and please subscribe to my youtube channel I wish you all the very best
Info
Channel: David Bombal
Views: 25,672
Rating: undefined out of 5
Keywords: GNS3, CCNA, Docker, Linux, Wordpress, Cisco GNS3, GNS3 2.0, GNS3 VM, GNS3 VMware, GNS3 Virtualbox, GNS3 VMware Workstation, GNS3 VMware Player, GNS3 2, GNS 2.0.2, GNS3 version 2, GNS3 install, GNS3 Windows, GNS3 Windows 10, GNS3 new install, GNS3 Tutorials, GNS3 Help, GNS3 Tuts, GNS3 New, GNS3 Getting Started, Getting Started with GNS3, SDN, Python
Id: 06wQQN1eXcs
Channel Id: undefined
Length: 10min 26sec (626 seconds)
Published: Fri Jun 23 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.