1 00:00:01,230 --> 00:00:03,900 ‫Today on the show I've got Marcus use me. 2 00:00:03,930 --> 00:00:05,940 ‫You've seen him before if you watch my YouTube Live. 3 00:00:06,140 --> 00:00:07,820 ‫He's over there on the left. 4 00:00:07,890 --> 00:00:12,020 ‫Marcus who is one of the co-founders of 5 00:00:12,020 --> 00:00:13,740 ‫Play with Docker and play with Kubernetes. 6 00:00:13,740 --> 00:00:18,900 ‫If you're familiar with that we talk about that too all the time on this show and in my courses and 7 00:00:18,900 --> 00:00:24,240 ‫all the workshops that everyone I know in the captain's community you know always use you using play 8 00:00:24,240 --> 00:00:28,170 ‫with Docker to share our examples and to show people cool stuff. 9 00:00:28,170 --> 00:00:32,020 ‫So thanks again Marcos for having a lot of beers one night. 10 00:00:32,040 --> 00:00:37,310 ‫And you and Jonathan figuring out how to make that thing work in a matter of hours. 11 00:00:37,310 --> 00:00:38,030 ‫It was pretty great. 12 00:00:38,040 --> 00:00:42,870 ‫And so here we are years later it is these standard tool now for playing around with Docker without 13 00:00:42,870 --> 00:00:44,270 ‫having to put it on your own machine. 14 00:00:45,270 --> 00:00:49,890 ‫So you're going to show us off some of the the new features that the command line for moving around 15 00:00:49,890 --> 00:00:50,900 ‫between different environments. 16 00:00:50,910 --> 00:00:52,670 ‫So take it away. 17 00:00:52,740 --> 00:00:53,380 ‫Yes. 18 00:00:53,430 --> 00:00:54,270 ‫Thank you very much Brad. 19 00:00:54,330 --> 00:00:57,200 ‫So happy to be here once again in the show. 20 00:00:57,240 --> 00:01:02,490 ‫You said like a happy still colorblind community and people like to get involved with their career you 21 00:01:02,490 --> 00:01:07,440 ‫know through playing with alcohol either through a play would get you on notice that it's a project 22 00:01:07,440 --> 00:01:14,250 ‫that we started with Jonathan like a couple of years ago 2015 if I recall correctly and it's being used 23 00:01:14,250 --> 00:01:20,640 ‫like allowed to steal out we we're having like thousands of visits per day and we are still about anything 24 00:01:20,640 --> 00:01:21,200 ‫conferences. 25 00:01:21,240 --> 00:01:27,360 ‫So the past Dr. Con in San Francisco all the workshops we're using the underlying infrastructure so 26 00:01:27,360 --> 00:01:31,680 ‫we are really happy to go to Cuba hoping and fostering you know the community and people who want to 27 00:01:31,680 --> 00:01:37,810 ‫learn especially in places where the the connection is not really good like India. 28 00:01:38,000 --> 00:01:43,980 ‫Maybe some other countries people find that really interesting cases to run stuff complete with operate 29 00:01:44,650 --> 00:01:48,800 ‫either a containers or maybe mind some bitcoins and stuff but. 30 00:01:49,620 --> 00:01:50,050 ‫Yeah. 31 00:01:50,110 --> 00:01:54,060 ‫Eric you were saying where there is that stable internet is like or any conference that you've ever 32 00:01:54,060 --> 00:01:56,580 ‫been to. 33 00:01:56,790 --> 00:01:57,590 ‫That is correct. 34 00:01:57,680 --> 00:02:02,220 ‫It really helps us a Duggar gone to because we got hundreds and hundred hundreds of people all at the 35 00:02:02,220 --> 00:02:04,560 ‫same time using play with Duggar. 36 00:02:05,060 --> 00:02:14,250 ‫Yeah I went running a workshop at Dr. Khan and we we were trying to download a dot net container image 37 00:02:14,340 --> 00:02:17,780 ‫and it just it was just killing the wife. 38 00:02:18,250 --> 00:02:22,800 ‫So someone suggested we play with Walker and of course you know within an instant it was able to pull 39 00:02:22,800 --> 00:02:23,390 ‫this of. 40 00:02:23,680 --> 00:02:30,330 ‫So yeah yeah they keep promising that the next gen Y Fi is gonna allow multiple connections instead 41 00:02:30,330 --> 00:02:34,380 ‫of one person talking at a time it's gonna allow a bunch of different people talking at a time to the 42 00:02:34,380 --> 00:02:39,150 ‫same IP so maybe that will be the future because every time we upgrade our Wi-Fi and cellular always 43 00:02:39,150 --> 00:02:41,020 ‫like okay no conferences are no longer a problem. 44 00:02:41,070 --> 00:02:42,610 ‫And then there's still a problem. 45 00:02:42,630 --> 00:02:45,930 ‫So yeah there's something there's always something right. 46 00:02:46,140 --> 00:02:46,760 ‫Yeah. 47 00:02:46,860 --> 00:02:49,250 ‫So anyways back to the contact switching. 48 00:02:49,260 --> 00:02:55,700 ‫So Joel actually made like a good introduction like the way that they're using it for UCB and that plus 49 00:02:55,710 --> 00:02:56,970 ‫three elements. 50 00:02:56,970 --> 00:03:00,520 ‫So I'm going to share my screen now I'm going to try to explain how that was edited a bit in depth. 51 00:03:00,720 --> 00:03:03,640 ‫So let me try to. 52 00:03:03,750 --> 00:03:05,910 ‫I think I can share because you already have the screen right. 53 00:03:06,660 --> 00:03:10,230 ‫Oh Joe you still sharing stuff. 54 00:03:10,410 --> 00:03:13,300 ‫Maybe I'm not sure how that works. 55 00:03:13,320 --> 00:03:14,540 ‫I'm drinking my day by the. 56 00:03:14,550 --> 00:03:16,060 ‫I'm basing what I just haven't seen. 57 00:03:16,160 --> 00:03:16,710 ‫As you know 58 00:03:19,760 --> 00:03:22,890 ‫the mighty man area I stopped. 59 00:03:23,390 --> 00:03:26,490 ‫Let me see if this lets me share not just great. 60 00:03:26,490 --> 00:03:27,290 ‫Yes I have it now. 61 00:03:29,000 --> 00:03:33,340 ‫So you should be able to see my screen now can you say to again. 62 00:03:33,650 --> 00:03:33,950 ‫Yeah. 63 00:03:34,840 --> 00:03:35,150 ‫Okay. 64 00:03:35,180 --> 00:03:41,900 ‫So I mean my terminal and the first thing that you're going to see in the new doctor 99 three is the 65 00:03:41,900 --> 00:03:43,060 ‫doctor context going on right. 66 00:03:44,390 --> 00:03:47,600 ‫So the doctor context come on it it basically allows you to do like little things. 67 00:03:47,660 --> 00:03:52,310 ‫So it allows you to create a context export and import context these are very much straightforward. 68 00:03:52,310 --> 00:03:54,550 ‫I'm not gonna go into this once. 69 00:03:54,890 --> 00:04:01,040 ‫I would like to display the constant add context list all the contacts that would have delayed update 70 00:04:01,100 --> 00:04:01,820 ‫and use context. 71 00:04:02,600 --> 00:04:06,120 ‫So the first thing that I'm going to do is I'm gonna basically do double context. 72 00:04:06,230 --> 00:04:08,690 ‫Let's see what we have in our lab. 73 00:04:08,720 --> 00:04:10,690 ‫We know basic Docker installation. 74 00:04:10,820 --> 00:04:14,790 ‫So basically you're gonna see that you have one context by default which is the default context. 75 00:04:15,920 --> 00:04:23,240 ‫And he basically points through your Unix the main target in the machine in this particular case. 76 00:04:23,990 --> 00:04:32,060 ‫It's also it also has like a Q and it is a endpoint because I have a cube configured my computer right. 77 00:04:32,210 --> 00:04:35,590 ‫If you don't have a QCT L or anything this will show like empty. 78 00:04:36,170 --> 00:04:41,630 ‫But in my particular case I'm using units were for my daily work which by the way I work at a site which 79 00:04:41,630 --> 00:04:44,050 ‫is a cloud service as a platform. 80 00:04:44,660 --> 00:04:47,420 ‫And I we use units regularly and doctor as well. 81 00:04:47,420 --> 00:04:50,680 ‫And as you can see my prompt I have computed my degree is conducted. 82 00:04:50,750 --> 00:04:52,890 ‫So that's why it shows you in the community. 83 00:04:53,630 --> 00:05:00,980 ‫So if you use your net is Docker context automatically like integrates with that and he will allow you 84 00:05:00,980 --> 00:05:03,190 ‫to deploy your Docker while closing your analysis. 85 00:05:03,190 --> 00:05:04,680 ‫That is the way that you want it do. 86 00:05:05,660 --> 00:05:12,040 ‫So I use that for context so I can do Docker yes it will be using my local demon. 87 00:05:12,770 --> 00:05:16,090 ‫But now let's say that I want to connect to another Docker demon right. 88 00:05:16,580 --> 00:05:22,730 ‫So the way that we did it the way we did this in the past is plagued by setting the doctor host environment 89 00:05:22,730 --> 00:05:24,620 ‫or variable like this. 90 00:05:24,620 --> 00:05:36,970 ‫Yeah we could use lag DCP so maybe whatever 2 3 7 6 PDC SSL endpoint point six and then. 91 00:05:37,060 --> 00:05:37,510 ‫Yes. 92 00:05:37,550 --> 00:05:38,080 ‫All right. 93 00:05:38,090 --> 00:05:40,180 ‫This will tell that that it can connect. 94 00:05:40,670 --> 00:05:44,450 ‫So we had an update on commands or we had to like have a bunch of different windows open with different 95 00:05:44,450 --> 00:05:45,580 ‫environment variables each. 96 00:05:45,580 --> 00:05:50,540 ‫And it was always weird to figure out which one you were on and yeah is it right. 97 00:05:50,540 --> 00:05:53,380 ‫But yeah that could be could be I'd work for it but it could be better. 98 00:05:53,390 --> 00:06:00,020 ‫I mean especially now that unity allows like easy contact switching like if I do for example queue CDL 99 00:06:00,580 --> 00:06:09,660 ‫CAD config get context you can see that I have a bunch of contexts in my computer so I can like can 100 00:06:09,770 --> 00:06:14,390 ‫see we have several regions in my company so I can actually go ahead and switch it to any context and 101 00:06:14,390 --> 00:06:15,680 ‫basically run it any commander. 102 00:06:15,950 --> 00:06:18,080 ‫So it would be nice to do the same thing with operator. 103 00:06:18,620 --> 00:06:23,420 ‫So with the double context command I can actually do that now. 104 00:06:23,450 --> 00:06:28,580 ‫So what I'm gonna do now is I'm going to go to play with Docker and I'm gonna create an instance where 105 00:06:29,420 --> 00:06:33,280 ‫hopefully this site works. 106 00:06:33,440 --> 00:06:39,950 ‫It doesn't matter if you don't see it in the browser because I'm just creating a play with a terminal 107 00:06:39,950 --> 00:06:46,970 ‫here and I'm just going to copy the euro of the session of that daemon basically. 108 00:06:47,200 --> 00:06:49,600 ‫So this is the crossover associates you are all right. 109 00:06:49,600 --> 00:06:53,140 ‫So if you're on play with Docker you see that little SSD you are all in the interface. 110 00:06:53,170 --> 00:06:54,130 ‫Yes that's correct. 111 00:06:54,130 --> 00:06:55,410 ‫So this is the little. 112 00:06:55,510 --> 00:07:00,520 ‫Let me try to add some something today so this is the easiest you know but I'm just gonna copy the whole 113 00:07:00,520 --> 00:07:01,000 ‫thing here. 114 00:07:01,000 --> 00:07:06,520 ‫I don't mind the to the stage come at some I copy the these is commands. 115 00:07:06,550 --> 00:07:13,900 ‫So what what I should be able to do here is I can set up Dr. Holst equals DCP right like the traditional 116 00:07:13,900 --> 00:07:18,280 ‫way to reason and try and I should be able to do. 117 00:07:18,320 --> 00:07:20,260 ‫Dr. Pearce right. 118 00:07:20,470 --> 00:07:26,680 ‫So here as you can see I did it on purpose but pointing my local slide to the play with a demon. 119 00:07:26,680 --> 00:07:38,500 ‫So if I do for example the Garan I'm going to just run and X and expose it full support these container 120 00:07:38,590 --> 00:07:42,120 ‫is gonna be running on my plate with operations. 121 00:07:42,190 --> 00:07:47,370 ‫So if I go to my break ground you can see that the board got its pulse here because I'm pointing to 122 00:07:47,400 --> 00:07:53,040 ‫the local level and of course I'm going to be able to access the Internet service and I suppose that 123 00:07:53,060 --> 00:07:56,080 ‫easy would play with her anyways. 124 00:07:56,740 --> 00:08:02,590 ‫What about if I don't remember the IP or as you said Brad if I have like multiple context or multiple 125 00:08:02,590 --> 00:08:05,980 ‫sessions and I need to start playing with this like a better right. 126 00:08:05,980 --> 00:08:07,240 ‫Like you know in a different way. 127 00:08:07,840 --> 00:08:13,090 ‫So what I'm gonna do is I'm going to copy this URL and I'm gonna use the new double context command 128 00:08:13,090 --> 00:08:15,770 ‫to actually say this context into my local limit. 129 00:08:15,880 --> 00:08:21,550 ‫So I'm going to do double context create and we're going to see a little bit what the options here are. 130 00:08:22,450 --> 00:08:28,120 ‫So basically you can contribute a context for both Docker and points and QNX has a points as I showed 131 00:08:28,150 --> 00:08:28,600 ‫earlier. 132 00:08:28,600 --> 00:08:34,870 ‫So whenever you set a great point you can either like configure the code name which is the one that 133 00:08:34,870 --> 00:08:40,270 ‫we're going to use now you can copy the context information from another context and that's something 134 00:08:40,270 --> 00:08:42,110 ‫that I also want to show. 135 00:08:42,130 --> 00:08:47,410 ‫And of course you can set up their certificates because if you want to talk to her like and this is 136 00:08:47,410 --> 00:08:48,150 ‫a live on. 137 00:08:48,250 --> 00:08:54,650 ‫You need to specify the certificates as well and you have an additional option to keep their verification 138 00:08:54,850 --> 00:08:59,160 ‫in case you don't have like trust and certificates. 139 00:08:59,170 --> 00:09:05,680 ‫Same applies for communities you can either import the humanities option from a different context you 140 00:09:05,680 --> 00:09:11,830 ‫can use a Q config file where all the certs are there and then you can override the curious context 141 00:09:11,830 --> 00:09:16,360 ‫and the communities namespace because whenever you set up a context you need to tell the doctor context 142 00:09:16,360 --> 00:09:21,700 ‫OK and let's talk to this community same point but I'm going to talk to these specific communities context 143 00:09:21,850 --> 00:09:24,750 ‫and curate its namespace writing code. 144 00:09:24,890 --> 00:09:30,580 ‫And here are some examples of how to do it. 145 00:09:30,580 --> 00:09:31,550 ‫Are you following tapas. 146 00:09:32,260 --> 00:09:33,750 ‫Yeah nice. 147 00:09:34,420 --> 00:09:37,090 ‫So now we're going to create a context like a symbol that would conflict. 148 00:09:37,090 --> 00:09:43,210 ‫So I'm going to do Docker context create and I'm going to basically set up a local context and for this 149 00:09:43,210 --> 00:09:51,060 ‫I'm going to say and I'm going to use the host and I'm going to just paste did I correct. 150 00:09:51,070 --> 00:09:51,580 ‫No I didn't. 151 00:09:52,000 --> 00:09:56,830 ‫I'm gonna paste the link with upper end point which I'm going to copy now. 152 00:09:57,190 --> 00:10:06,430 ‫So let me try to see the context and then clear this double context create Docker prompt a host. 153 00:10:06,820 --> 00:10:11,200 ‫I'm gonna paint this and I'm going to name this context because in this context is gonna be called Play 154 00:10:11,200 --> 00:10:16,250 ‫with opera as you can see Dublin content says that it created the context. 155 00:10:16,330 --> 00:10:22,260 ‫So if I do local context the less now I should be able to see the default context on the play with ochre 156 00:10:22,250 --> 00:10:22,560 ‫1. 157 00:10:23,260 --> 00:10:28,960 ‫So now what I can do is like a little dog and context use to switch by context and I can say OK I'm 158 00:10:28,960 --> 00:10:31,990 ‫going to use the play with uncut context now and I can do. 159 00:10:32,050 --> 00:10:38,000 ‫Dr. Yes and I should be able to see the engine container running which is running here in LA with obviously 160 00:10:38,070 --> 00:10:38,560 ‫sport. 161 00:10:39,340 --> 00:10:48,460 ‫So if I do Docker let's say our M F this container which is running on with ochre you're going to see 162 00:10:48,610 --> 00:10:50,180 ‫that the container got killed. 163 00:10:50,410 --> 00:10:54,420 ‫So I do Dr. Pearce here. 164 00:10:54,430 --> 00:10:57,620 ‫I don't see anything running saved. 165 00:10:57,690 --> 00:11:03,960 ‫So this is how easy you can actually connect to a different context and manipulate your containers running 166 00:11:03,960 --> 00:11:09,240 ‫there with a double context command like in a two or three steps the three steps is super easy. 167 00:11:09,600 --> 00:11:09,900 ‫Yeah. 168 00:11:09,930 --> 00:11:14,490 ‫Is that is that in the background actually changing the environment variable for Doctor host or is it 169 00:11:14,490 --> 00:11:19,670 ‫just now that the command line is always looking at that those config files to see which one's current. 170 00:11:19,890 --> 00:11:20,690 ‫Good question Fred. 171 00:11:20,730 --> 00:11:22,590 ‫So how all this works. 172 00:11:22,590 --> 00:11:26,560 ‫So like this the same thing has everything. 173 00:11:26,650 --> 00:11:28,690 ‫Everything else works in Docker. 174 00:11:28,740 --> 00:11:35,370 ‫What this does under the underneath his like it goes through your Docker like a computation folder and 175 00:11:35,370 --> 00:11:43,440 ‫it will create a new follow that is called contexts in this particular folder you have a made up folder 176 00:11:43,560 --> 00:11:50,130 ‫where you have like a hash of the context that you created in this in this particular path they're going 177 00:11:50,130 --> 00:11:55,950 ‫to see and made other Jason File and this Jason file actually has all the information required for the 178 00:11:55,950 --> 00:11:56,610 ‫Daemon to connect. 179 00:11:57,420 --> 00:12:03,720 ‫So whenever you specify context what what this is doing underneath is like reading that file getting 180 00:12:03,720 --> 00:12:09,930 ‫the whole name of the of this file and then sending this whole thing through the local CLIA So it connects 181 00:12:09,930 --> 00:12:11,550 ‫to the remote daemon basically. 182 00:12:11,550 --> 00:12:17,220 ‫So it's not set it's sitting a like a variable but it's just reading this file and injecting them in 183 00:12:17,220 --> 00:12:20,280 ‫the underlined obviously scale basically yeah it's cool does it does. 184 00:12:20,580 --> 00:12:25,920 ‫I mean it is a random question now I've got a bunch of thoughts here is that if you if you end up setting 185 00:12:25,920 --> 00:12:27,370 ‫the doctor host does that win. 186 00:12:27,390 --> 00:12:33,530 ‫Is there a zero I can fight against each other what was the question sorry. 187 00:12:33,920 --> 00:12:38,030 ‫Oh well I'm just thinking like it because you previously you said a darker host environment variables 188 00:12:38,030 --> 00:12:43,740 ‫so if that's already set does it win over context or that's a good question. 189 00:12:43,730 --> 00:12:50,890 ‫I said it would win but we could slide out so let's say local context alas doesn't context. 190 00:12:52,610 --> 00:12:56,720 ‫So I mean the play with overall context let's try to override this. 191 00:12:56,750 --> 00:13:01,800 ‫Let's try to use for example my local machine uniques. 192 00:13:03,010 --> 00:13:04,270 ‫Is three or four right. 193 00:13:04,500 --> 00:13:04,930 ‫Wow. 194 00:13:05,210 --> 00:13:09,430 ‫And I was gonna say even if it was wrong you'd know think is it would give you an error just right away 195 00:13:09,430 --> 00:13:10,640 ‫it would say yeah that's right. 196 00:13:10,640 --> 00:13:11,300 ‫Right well we can do it. 197 00:13:11,310 --> 00:13:11,520 ‫OK. 198 00:13:11,600 --> 00:13:12,980 ‫Yes. 199 00:13:13,310 --> 00:13:14,050 ‫That's a. 200 00:13:14,080 --> 00:13:15,950 ‫And yes he'd overwrite the count. 201 00:13:16,010 --> 00:13:16,400 ‫Yeah. 202 00:13:16,720 --> 00:13:18,210 ‫Okay yeah. 203 00:13:18,230 --> 00:13:22,430 ‫So it's kind of like it gets the nice thing here is a basically it's not going to break. 204 00:13:22,430 --> 00:13:26,840 ‫Like if you have an existing workflows that are depending on an environment variable it won't break 205 00:13:26,840 --> 00:13:27,160 ‫them. 206 00:13:27,200 --> 00:13:32,590 ‫It'll only work I guess when that one's either empty or are not set or something. 207 00:13:32,660 --> 00:13:39,500 ‫Is there a way to use context in like we do with Cube control where we can specified in the command 208 00:13:39,500 --> 00:13:43,520 ‫line or do we have to set it first and then like for example. 209 00:13:43,550 --> 00:13:44,110 ‫No there is. 210 00:13:44,120 --> 00:13:46,460 ‫So I can actually there's a doctor I see. 211 00:13:46,880 --> 00:13:48,800 ‫So you can go doctor just see default. 212 00:13:49,140 --> 00:13:49,360 ‫Yes. 213 00:13:49,370 --> 00:14:01,060 ‫For example and this will talk to my is it context maybe the her context default X I'm sorry. 214 00:14:01,730 --> 00:14:07,670 ‫I think it's def just context and then yeah but just content. 215 00:14:07,910 --> 00:14:08,680 ‫Default. 216 00:14:08,870 --> 00:14:09,310 ‫Yes. 217 00:14:09,470 --> 00:14:09,610 ‫Yeah. 218 00:14:09,620 --> 00:14:10,860 ‫That is the idea. 219 00:14:11,110 --> 00:14:11,750 ‫Yeah. 220 00:14:12,440 --> 00:14:13,840 ‫I think it's actually as well. 221 00:14:14,510 --> 00:14:14,770 ‫Yeah. 222 00:14:15,180 --> 00:14:15,620 ‫Yeah okay. 223 00:14:15,620 --> 00:14:18,420 ‫So you could actually default on the commands. 224 00:14:18,440 --> 00:14:20,160 ‫So expect yes or whatever. 225 00:14:20,240 --> 00:14:25,350 ‫And this basically overrides the the context that you're upset by by default. 226 00:14:25,390 --> 00:14:25,690 ‫Yeah. 227 00:14:25,700 --> 00:14:26,860 ‫That's really that's handy. 228 00:14:26,870 --> 00:14:34,250 ‫So you're using both of them integrate this because actually because let's say that you want to run 229 00:14:34,720 --> 00:14:39,500 ‫a container in the context that you have because you want to sound like a troubleshooting shop job or 230 00:14:39,500 --> 00:14:48,770 ‫whatever like brand something you can do for C E and alter context unless let's ask you the same the 231 00:14:48,770 --> 00:14:49,310 ‫same thing. 232 00:14:49,630 --> 00:14:50,850 ‫Yes. 233 00:14:51,170 --> 00:14:55,010 ‫Do for example and then you can do Docker. 234 00:14:55,040 --> 00:14:57,010 ‫That's the context. 235 00:14:57,020 --> 00:14:58,330 ‫Yes for example. 236 00:14:58,490 --> 00:14:59,460 ‫Yeah. 237 00:14:59,540 --> 00:15:01,330 ‫So this is basically yeah. 238 00:15:01,330 --> 00:15:05,420 ‫If you run these it's gonna like loop through all your contacts and run a command through your although 239 00:15:05,510 --> 00:15:07,050 ‫all your policy lies basically. 240 00:15:07,220 --> 00:15:07,540 ‫Yeah. 241 00:15:07,550 --> 00:15:07,880 ‫That's. 242 00:15:07,880 --> 00:15:17,210 ‫Which is which is we go say so I had the up in both of my containers so I can do. 243 00:15:17,240 --> 00:15:23,490 ‫Iran hello world and this will run hello world in my machine and he will ruddy also play with. 244 00:15:24,290 --> 00:15:24,580 ‫Yeah. 245 00:15:24,660 --> 00:15:29,360 ‫So that's a protip for those of you that haven't heard it on either the show or wherever we as we talk 246 00:15:29,360 --> 00:15:32,660 ‫about we talk about command stuff that in any of the darker. 247 00:15:32,840 --> 00:15:38,420 ‫Well not all of them but a lot of the darker commands a dash Q for quiet actually allows you to do these 248 00:15:38,420 --> 00:15:43,790 ‫really nice little one liner bash scripts and stuff because it really pumps out just the ideas or the 249 00:15:43,980 --> 00:15:46,010 ‫thing you need in order to talk to them. 250 00:15:46,040 --> 00:15:49,490 ‫So it's great that I would have never thought of using it with context. 251 00:15:49,500 --> 00:15:54,280 ‫That's a really cool cool scenario or you know and you get into those obviously. 252 00:15:54,280 --> 00:15:55,090 ‫So yeah. 253 00:15:55,330 --> 00:15:56,760 ‫It's the name of the company. 254 00:15:56,780 --> 00:16:01,550 ‫So I can just easily look through that and then run something in parallel through all the glasses that 255 00:16:01,550 --> 00:16:04,130 ‫I have which is pretty cool. 256 00:16:04,130 --> 00:16:09,650 ‫The last thing that I would like to show you is one and one another thing which is pretty recent in 257 00:16:09,650 --> 00:16:14,840 ‫dogma is that you can actually ask a question for you or for the audience that you might know already 258 00:16:14,840 --> 00:16:21,940 ‫so which is like they're the best way to connect to remote agreement securely. 259 00:16:22,370 --> 00:16:24,720 ‫Well previously it was TCB right. 260 00:16:24,750 --> 00:16:25,760 ‫Soupy would tell us. 261 00:16:25,760 --> 00:16:28,910 ‫But right that there's a nucleus there's a new player. 262 00:16:29,300 --> 00:16:38,090 ‫That's a new thing that's a new thing which landed on 18 or nine and now it has been like enhanced by 263 00:16:38,090 --> 00:16:45,210 ‫the 19 or three which is SS age basically connection remote connection threads through the ceiling. 264 00:16:45,800 --> 00:16:46,800 ‫So how does that work. 265 00:16:47,240 --> 00:16:52,580 ‫So pretty much everyone here like before actually installing doc in the world need to provision a machine 266 00:16:52,580 --> 00:16:57,540 ‫right so you need to launch a machine in any cloud or whatever and then you need to a cessation to a 267 00:16:57,770 --> 00:16:58,680 ‫machine to do some stuff. 268 00:16:59,360 --> 00:17:03,980 ‫So in this particular case I already have a machine running in the cloud so I'm going to search through 269 00:17:03,980 --> 00:17:08,570 ‫it by using my God and stage config file. 270 00:17:08,570 --> 00:17:08,840 ‫Right. 271 00:17:08,840 --> 00:17:16,850 ‫So for those who don't know that I know what this file is basically in your in pretty much every configuration 272 00:17:16,850 --> 00:17:23,200 ‫you have a config file that basically lists all the machines that you have in remotely. 273 00:17:23,210 --> 00:17:27,550 ‫So this is a public IP and this is the key that I'm using to access a machine. 274 00:17:28,130 --> 00:17:36,010 ‫So by having this I can easily access that machine by using a stage it only as laughs last jump jump. 275 00:17:36,500 --> 00:17:42,290 ‫So basically SSA will read that computation file and it will just connect with that machine right directly 276 00:17:42,290 --> 00:17:45,560 ‫by using all the parameters that I have there the public IP the keys and everything. 277 00:17:46,580 --> 00:17:51,740 ‫So one nice thing nice thing that dollhouse and it's specifically done with context is that I can say 278 00:17:52,160 --> 00:17:56,090 ‫the context create and I'm going to name this context as a sage. 279 00:17:56,430 --> 00:18:04,010 ‫And when it created a context again and what we can do here is in host we can actually use MSHA and 280 00:18:04,010 --> 00:18:08,390 ‫we can use the name of the config calls that I have in my files so I can do it all yes. 281 00:18:08,450 --> 00:18:11,280 ‫Love last jump here. 282 00:18:11,690 --> 00:18:11,990 ‫Right. 283 00:18:12,650 --> 00:18:13,520 ‫And that's pretty much it. 284 00:18:13,730 --> 00:18:21,110 ‫So now I can switch tracks to that context double context use at this age and I can do it again. 285 00:18:21,180 --> 00:18:26,020 ‫Yes let's do the Koran work here. 286 00:18:26,190 --> 00:18:26,540 ‫Table 287 00:18:30,410 --> 00:18:33,010 ‫so what this is doing this is connecting. 288 00:18:33,020 --> 00:18:34,380 ‫I'm not sure what's happening here. 289 00:18:34,400 --> 00:18:40,070 ‫So this is connecting through the remote or to the remote agreement through its message not through 290 00:18:40,070 --> 00:18:42,020 ‫till s and it is running the container there. 291 00:18:42,260 --> 00:18:46,640 ‫So I don't need to like either expose Docker ports to the world. 292 00:18:46,670 --> 00:18:51,920 ‫I don't need to set up any such certificates or any CAC or whatever this is just using like plane as 293 00:18:51,910 --> 00:18:55,830 ‫I said connection made the way that I usually go to that servers. 294 00:18:55,850 --> 00:19:00,860 ‫So now that I mean the server here and the pain in the bottom I can do the previous touch a and you 295 00:19:00,860 --> 00:19:05,690 ‫can see that they're in a world container just run there which is pretty pretty amazing because I don't 296 00:19:05,690 --> 00:19:10,230 ‫need to do any extra steps or whatever anymore. 297 00:19:10,250 --> 00:19:15,680 ‫One last comment about this is that you can actually do it without like you can actually use it today 298 00:19:15,740 --> 00:19:23,840 ‫if you don't have like 19 0 0 3 by setting up the doctor host to at stage you're going to either use 299 00:19:23,840 --> 00:19:31,200 ‫a name that I or that I use here or you can use like user add IP for example right. 300 00:19:31,630 --> 00:19:32,340 ‫Yes I can. 301 00:19:32,490 --> 00:19:33,390 ‫I can do the same here. 302 00:19:33,390 --> 00:19:35,200 ‫Same here. 303 00:19:35,220 --> 00:19:40,620 ‫You just need to make sure that the keys you're using it this way you just need to make sure that the 304 00:19:40,620 --> 00:19:46,830 ‫keys that this user has are already in your situation because otherwise you will not know which keys 305 00:19:46,830 --> 00:19:48,510 ‫to use basically connectivity simply. 306 00:19:49,180 --> 00:19:49,940 ‫Yeah. 307 00:19:50,100 --> 00:19:52,650 ‫If I remember correctly this method doesn't work yet. 308 00:19:52,680 --> 00:19:58,410 ‫If you are using password based SSA which none of you should be but that's still true. 309 00:19:59,080 --> 00:20:00,860 ‫I don't think they've changed that. 310 00:20:00,870 --> 00:20:01,920 ‫Yes that's correct. 311 00:20:01,920 --> 00:20:04,930 ‫This would only work if you're using like a key based access right. 312 00:20:05,310 --> 00:20:06,870 ‫Which which we should all be using. 313 00:20:06,870 --> 00:20:14,330 ‫I mean you can obviously use password to get a key into the accepted keys list but this is really cool. 314 00:20:14,340 --> 00:20:20,460 ‫And when it first came out last fall I would just shut up about it like I was telling everybody like 315 00:20:20,460 --> 00:20:20,840 ‫it was. 316 00:20:20,990 --> 00:20:22,830 ‫It was the solution to all problems. 317 00:20:23,040 --> 00:20:30,270 ‫And so many people I think are basically to me what the SSA ability in context just makes it even easier 318 00:20:30,270 --> 00:20:34,790 ‫to use because basically we can now I can never remember what's in my SSA config file right. 319 00:20:34,800 --> 00:20:38,490 ‫There's so much stuff in your associates config it's like yeah I can never remember all the things in 320 00:20:38,490 --> 00:20:38,660 ‫there. 321 00:20:38,670 --> 00:20:43,290 ‫So having it in the context list means I don't have to leave my Docker command line remember okay what 322 00:20:43,290 --> 00:20:46,100 ‫was the name of that server that I called it in essence H. 323 00:20:46,560 --> 00:20:53,130 ‫But to me what this is going to do is this this is really gonna help us prevent Docker from people from 324 00:20:53,130 --> 00:21:00,120 ‫inadvertently exposing unsecure CCP connections or insecurities to be connections on their knock engines 325 00:21:00,150 --> 00:21:01,880 ‫because that does get a little bit of heat. 326 00:21:01,890 --> 00:21:02,190 ‫Right. 327 00:21:02,180 --> 00:21:10,130 ‫Like we we we have had people that there have been reports that Docker is exposed on the Internet or 328 00:21:10,140 --> 00:21:11,500 ‫company is exposed on the Internet. 329 00:21:11,880 --> 00:21:21,260 ‫And I think that a lot of that has to do with you know people basically doing this like they need a 330 00:21:21,260 --> 00:21:22,290 ‫remote to a server. 331 00:21:22,400 --> 00:21:23,670 ‫They don't want SSA. 332 00:21:23,690 --> 00:21:30,170 ‫So they do that CCP way and now you know as of eight months ago really we don't need that anymore we 333 00:21:30,170 --> 00:21:33,470 ‫have this SSA ability and the context makes it even easier. 334 00:21:33,470 --> 00:21:40,250 ‫So I'm sorry I switch away from your screens screen share where you done there just one last thing that 335 00:21:40,250 --> 00:21:41,720 ‫I want I'll show you. 336 00:21:42,470 --> 00:21:47,630 ‫Let's say that you want to create a context for and it is but you still want to use like your regular 337 00:21:47,630 --> 00:21:50,540 ‫doctor stuff like your regular doctor context. 338 00:21:50,540 --> 00:22:00,370 ‫You can just use one plug from local content create which is this is taking so long because my local 339 00:22:00,370 --> 00:22:04,390 ‫see lights blinking to my SSA chair right out here in remote Serbia. 340 00:22:04,580 --> 00:22:04,790 ‫Yeah. 341 00:22:04,790 --> 00:22:09,780 ‫One one nice feature that I had that I would like to see is that there's a blog for example for communities 342 00:22:09,800 --> 00:22:13,760 ‫that brings the context that you're using it would be nice if we can have like a doctor prompt also. 343 00:22:14,300 --> 00:22:16,400 ‫So it tells you in which double contacts you are. 344 00:22:16,890 --> 00:22:22,680 ‫So eventually is there was there a way to return current context and then. 345 00:22:23,540 --> 00:22:23,960 ‫Yeah. 346 00:22:23,990 --> 00:22:29,750 ‫You do take into context the less this will tell you the quantitative easing has to start here. 347 00:22:31,520 --> 00:22:35,410 ‫So I don't know if there's a way to tell. 348 00:22:35,510 --> 00:22:39,070 ‫Give me the current context because of it. 349 00:22:39,120 --> 00:22:43,700 ‫If you did I was just thinking this I was actually thinking it would be called this out a one liner 350 00:22:43,700 --> 00:22:46,510 ‫on how to add here bashers this age profile. 351 00:22:46,920 --> 00:22:47,160 ‫Yeah. 352 00:22:47,180 --> 00:22:48,720 ‫Very very content in there. 353 00:22:48,740 --> 00:22:49,950 ‫But it is still a nose. 354 00:22:49,970 --> 00:22:51,860 ‫There should be a way to know which content seriously. 355 00:22:52,280 --> 00:22:52,820 ‫Yeah. 356 00:22:52,820 --> 00:22:57,160 ‫We need to we need to see how this CIA actually doesn't like the current bird. 357 00:22:57,640 --> 00:22:58,760 ‫Yeah yeah. 358 00:22:58,880 --> 00:22:59,860 ‫Because security is has. 359 00:22:59,900 --> 00:23:03,930 ‫But I don't know if you can do it without or maybe Jonas. 360 00:23:04,290 --> 00:23:04,940 ‫It's a good idea. 361 00:23:04,940 --> 00:23:08,040 ‫I like this and I'm curious if there is a way to filter. 362 00:23:08,400 --> 00:23:10,860 ‫I mean you can grill but nice. 363 00:23:11,260 --> 00:23:13,610 ‫So joyously looking at look it up for us. 364 00:23:13,730 --> 00:23:17,030 ‫In any case is going to say it would be cool yeah if we had like just a separate command that we could 365 00:23:17,030 --> 00:23:22,510 ‫pipe and we could throw into a there that would just return the name instead of a second extra late. 366 00:23:23,050 --> 00:23:24,180 ‫Yeah yeah. 367 00:23:24,350 --> 00:23:27,650 ‫So the way that I want to get the LSD. 368 00:23:28,070 --> 00:23:30,530 ‫Well else that you might give you go all of them. 369 00:23:31,010 --> 00:23:31,980 ‫Yeah I would give you all of them. 370 00:23:33,140 --> 00:23:34,460 ‫Oh so I just saying. 371 00:23:34,490 --> 00:23:39,160 ‫So do a dash Q And then a filter on maybe there's a filter on current. 372 00:23:39,170 --> 00:23:40,940 ‫I think you do have a filter here. 373 00:23:40,940 --> 00:23:42,940 ‫Yeah yeah. 374 00:23:43,040 --> 00:23:44,080 ‫Just format anyways. 375 00:23:44,310 --> 00:23:44,450 ‫Yeah. 376 00:23:44,500 --> 00:23:44,690 ‫Yeah. 377 00:23:44,870 --> 00:23:45,300 ‫OK. 378 00:23:45,980 --> 00:23:49,500 ‫So what I wanted to show is let's say that you want to create a new context. 379 00:23:49,550 --> 00:23:59,000 ‫They occur let's say context create and then I'm going to set up like Unity's units just like config 380 00:23:59,000 --> 00:24:00,630 ‫file or something. 381 00:24:02,380 --> 00:24:12,080 ‫There is a com videos create I don't do this regularly a lot. 382 00:24:12,270 --> 00:24:17,470 ‫So you can say community sampling here and then you can say copy failure so you can. 383 00:24:17,490 --> 00:24:26,640 ‫Let's say that I want to use curious config file some file some file and then I will reuse the docker 384 00:24:26,640 --> 00:24:31,090 ‫context or I'm using my default contacts for example because I don't want to like set up the whole scanning. 385 00:24:31,110 --> 00:24:37,830 ‫So what I can do is I can set up like Dr. Douglas Tucker and I can tell this guy from default. 386 00:24:38,070 --> 00:24:40,220 ‫And this default is like another contact that I have. 387 00:24:41,700 --> 00:24:43,930 ‫And I need to specify it which I didn't do. 388 00:24:46,710 --> 00:24:49,550 ‫It's not Cuba. 389 00:24:49,570 --> 00:24:55,850 ‫That is I was at the same table and let's create like a desk. 390 00:24:57,200 --> 00:24:59,060 ‫So what this is going to do it is gone. 391 00:24:59,150 --> 00:25:00,940 ‫This is going to create a new context. 392 00:25:01,160 --> 00:25:03,700 ‫But you'll find part doesn't matter. 393 00:25:03,710 --> 00:25:09,050 ‫This is going to create a new context but it's going to reuse their doctor information that I have in 394 00:25:09,050 --> 00:25:13,220 ‫my default context I can remove the current part just to try and works 395 00:25:16,780 --> 00:25:19,460 ‫and this basically context was created. 396 00:25:19,460 --> 00:25:30,770 ‫So if I if I do Doctor context use test and I do Dr. Pierce this will talk to my local Lima because 397 00:25:30,770 --> 00:25:35,750 ‫I contribute to local context use the same context on the people context basically which is my local 398 00:25:35,750 --> 00:25:36,240 ‫machine. 399 00:25:36,740 --> 00:25:43,640 ‫That's also a pretty neat addition that you can like easily alias that either the doctor curate its 400 00:25:43,640 --> 00:25:46,550 ‫context from a different animal control that you have in your machine. 401 00:25:48,310 --> 00:25:52,350 ‫Yeah so that's pretty much what I want to know today. 402 00:25:52,400 --> 00:25:59,420 ‫Like lots of interesting tooling around like fiddling with democracy like when you set the darker context 403 00:25:59,420 --> 00:26:03,850 ‫is that also set the context for cube control is a totally separate No. 404 00:26:03,850 --> 00:26:05,380 ‫That's a totally separate thing. 405 00:26:05,520 --> 00:26:10,840 ‫OK that would be cool if that was an option to have the doctor set the cube control for you. 406 00:26:10,840 --> 00:26:14,030 ‫So you had a one liner for everything. 407 00:26:14,290 --> 00:26:19,660 ‫Because usually when you change Doctor contacts you usually want both to be talking that same server 408 00:26:19,690 --> 00:26:24,010 ‫like a a dash a dash K which also includes the context change for Cuba. 409 00:26:25,460 --> 00:26:26,650 ‫Maybe that's a good idea. 410 00:26:26,740 --> 00:26:29,830 ‫I've already got a thousand features we need to add to this and it just it just showed up. 411 00:26:29,830 --> 00:26:33,810 ‫But you know we we need we need version to now biodegrade and by the way. 412 00:26:33,880 --> 00:26:37,300 ‫I have the answer to the questions got in the current context that he selected. 413 00:26:37,720 --> 00:26:38,040 ‫Yeah. 414 00:26:38,500 --> 00:26:42,880 ‫So if you go to yet your config that general updates on file which I'm not going to stop because it 415 00:26:42,880 --> 00:26:45,300 ‫has my keys. 416 00:26:45,350 --> 00:26:52,340 ‫There's a value in that Jason which says current context I never wanted to name that the context so 417 00:26:52,340 --> 00:26:53,070 ‫there's a way to know. 418 00:26:53,450 --> 00:26:57,050 ‫Yeah so there's a config so for those you don't know. 419 00:26:57,230 --> 00:26:59,540 ‫Actually I can show Monroe quick. 420 00:26:59,540 --> 00:27:00,300 ‫So people. 421 00:27:01,160 --> 00:27:01,680 ‫Yeah. 422 00:27:01,880 --> 00:27:08,170 ‫Let me I can I can show my comment by my my the caller ID like. 423 00:27:08,510 --> 00:27:15,770 ‫Okay I got it I got yeah because mine is using the Mac Store so it doesn't have to have the key in there 424 00:27:15,780 --> 00:27:16,770 ‫yeah. 425 00:27:17,510 --> 00:27:24,440 ‫So yeah basically if you're not familiar your command line on any Docker command line has a config file 426 00:27:24,440 --> 00:27:29,210 ‫that controls how your your command line is working or. 427 00:27:29,330 --> 00:27:29,880 ‫Yeah. 428 00:27:30,020 --> 00:27:34,130 ‫And so there's cool things that have been added lossless that's actually been added in the last year 429 00:27:34,130 --> 00:27:42,350 ‫to this because you now can define when you're doing Docker like Ducker stack commands. 430 00:27:42,410 --> 00:27:44,530 ‫You can actually deploy those stacks now to Cuba. 431 00:27:44,680 --> 00:27:50,810 ‫So there is such a thing as a stack default stack orchestrator so you can you can say I want Cuban entities 432 00:27:50,810 --> 00:27:52,850 ‫when I do a darker stack deploy to actually talk to Cuba. 433 00:27:52,840 --> 00:27:56,120 ‫Nettie so that's a pretty cool thing most people don't know about that but yeah. 434 00:27:56,140 --> 00:28:01,010 ‫One of the things here would be a default context which I don't have one set because I just installed 435 00:28:01,010 --> 00:28:06,370 ‫the brand new 1983 release and it wiped out my config because I had an old beta. 436 00:28:06,770 --> 00:28:08,870 ‫So yeah that would normally that would be stored in there. 437 00:28:08,930 --> 00:28:16,110 ‫And yeah yeah there's a lot of Gothic ski there that has the name of the complex Yeah. 438 00:28:16,490 --> 00:28:22,100 ‫If it's apps and I think it's because it's using the default you are some simple script and you'd probably 439 00:28:22,100 --> 00:28:28,760 ‫get the current context is we but that's a I'm sure that someone that's watching live or in the next 440 00:28:28,760 --> 00:28:34,640 ‫20 minutes on Twitter will give us a one liner that uses JQ with pulling out this Jason File and finding 441 00:28:34,640 --> 00:28:38,840 ‫the default context and putting it in every shell command so make it happen Internet. 442 00:28:39,170 --> 00:28:42,610 ‫Well thank you so much gentlemen for joining the call today.