Latest / Talk Python To Me / #308: Docker for Python Developers (2021 Edition)
Transcript
- 0:00Docker is one of the core elements of developing Python applications in consistent ways, as well as running them across different hardware universally.
- 0:07On this episode, you'll meet Peter McKee from Docker.
- 0:10He's here to catch us up on what's happening in the Docker universe for Python developers.
- 0:15This is Talk Python To Me, episode 308, recorded March 9th, 2021.
- 0:20Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 0:40This is your host, Michael Kennedy.
- 0:42Follow me on Twitter, where I'm @mkennedy, and keep up with the show and listen to past episodes at talkpython.fm,
- 0:48and follow the show on Twitter via at Talk Python.
- 0:51This episode is brought to you by Datadog and us over at Talk Python Training.
- 0:55Please check out what we're offering during our segments.
- 0:58It really helps support the show.
- 0:59A little bit of news.
- 1:01We just released not one, but two new courses, and more are just around the corner.
- 1:05You might remember my interview with Sebastian Witowski over on episode 279,
- 1:10where we discussed the modern Python developers toolkit.
- 1:12Since then, he and I have teamed up to bring you this whole idea of modern tools
- 1:16applied to well-structured Python projects as a course.
- 1:19And we just released it.
- 1:20It's called Modern Python Projects.
- 1:22You can find it over at talkpython.fm/modern dash python dash projects,
- 1:26or you'll find the link in the show notes.
- 1:28If you like the idea of a total tool chain makeover for how you're building your Python projects and applications,
- 1:33be sure to drop by the course page and watch the overview video to see if it's right for you.
- 1:37I'm sure everyone will learn something interesting in this course.
- 1:40There's so many cool things in here, no matter your experience level.
- 1:43Another new course we just launched is full web apps with FastAPI.
- 1:47FastAPI is definitely the framework with the most energy lately.
- 1:51But if you build your APIs with FastAPI, well, you need another framework for your HTML user interaction side.
- 1:56In other words, could you replace Flask or Django with FastAPI?
- 2:00The answer is yes.
- 2:01And this course is your guide to doing so.
- 2:03Check it out at talkpython.fm/fastapi dash web.
- 2:07Link in the show notes.
- 2:08I'm really excited about these two courses, and I hope you all love them.
- 2:11We'll be giving away five tickets to attend PyCon US 2021.
- 2:16This conference is one of the primary sources of funding for the PSF,
- 2:20and it's going to be held May 14th to 15th online.
- 2:23And because it's online this year, it's open to anyone around the world.
- 2:27So we decided to run a contest to help people, especially those who have never been part of PyCon before,
- 2:32attend it this year.
- 2:33Just visit talkpython.fm/PyCon 2021 and enter your email address,
- 2:38and you'll be in the running for an individual PyCon ticket.
- 2:41Compliments of Talk Python.
- 2:43These normally sell for about $100 each.
- 2:46And if you're certain you want to go, I encourage you to visit the PyCon website,
- 2:49get a ticket, and that money will go to support the PSF and the Python community.
- 2:53Congratulations to Tammy Doe.
- 2:56Tammy won the second of five tickets we're giving away, and there's still more chances to win.
- 3:00If you want to be in this drawing, just visit talkpython.fm/PyCon 2021.
- 3:04Enter your email address.
- 3:06You'll be in the running to win a ticket.
- 3:08Now, let's get on to that interview.
- 3:10Peter, welcome to Talk Python To Me.
- 3:13Yeah, thanks for having me.
- 3:14Great to be here.
- 3:15Hey, it's really great to have you here as well.
- 3:17It's been far too long since we've talked containers and Docker and all the things.
- 3:21I was looking back at something like Show 9 or something like that.
- 3:24It was, I believe, 2015.
- 3:26Has anything changed with Docker since 2015?
- 3:28I suspect something has.
- 3:30Yeah, containers are interesting.
- 3:32They're moving very fast, right?
- 3:34Very fast.
- 3:35On just about all fronts, I think the whole developer, DevOps, DevSecOps, you know, just have embraced it the past five years.
- 3:42Yeah, I was thinking what you might respond to from that question.
- 3:45And to me, it seems like not so much how containers work and run, but just how people have embraced them and how many places they show up and how many people are saying, hey, hey, we have a cluster.
- 3:56You just run your thing over here.
- 3:58Just give us your container and we'll help you run it as part of our platform as a service or whatever it is they're cloud hosting.
- 4:03Yeah.
- 4:04Yeah, it's very interesting.
- 4:05And then there's all these little micro, maybe micro is not the correct term, but all these, a lot of SaaS and startups and trying to help.
- 4:12And containers are at the core of a lot of that.
- 4:15If you get in a container, we can run it.
- 4:17And yeah, some really interesting SaaS as they're starting up, little niche platforms as a service type things.
- 4:22Yeah, 100%.
- 4:23Yeah, absolutely.
- 4:24It's super interesting.
- 4:25Before we dive too deep into that, though, let's get started with your story.
- 4:28How did you get into programming?
- 4:30As a kid, my dad's an accountant, but a nerd at heart, you know, a techie, let's say.
- 4:35And he started out, this is interesting, at least to me, he started out with calculators before PCs were a big thing.
- 4:41He had calculators and he programmed these calculators and stuff.
- 4:44And anyways, long story short, he ended up getting, I think it was Apple II was the first kind of computer we had.
- 4:50And I was fascinated about it, started programming on it, just learning, messing around.
- 4:54Fast forward after high school, I was in the Coast Guard and had gotten out and was going back to school.
- 5:00And, you know, I started back as an accountant.
- 5:02My dad said, hey, accounting is a good foundation, like math and science and those type of things.
- 5:06And I hated it, hated it, debits and credits.
- 5:10And I was just like micro Mac record.
- 5:13Yeah, exactly.
- 5:14Now it's very, yeah, now it's a lot more interesting.
- 5:16Back then I couldn't stand it.
- 5:17But then I lucked out.
- 5:19My father was running two steel companies and he had a consulting team that was writing software for him, you know, like very exciting stuff.
- 5:26Like inventory management, work in process tracking.
- 5:29It's not exciting, but it's the kind of stuff that if you looked at what people were doing before, it was dreadful, right?
- 5:35It was like transformative, even though it seems so boring and basic.
- 5:37Yeah.
- 5:38Yeah.
- 5:39And he said, why don't you come work for me?
- 5:41And this consulting firm, the main, the owner had some life issues or whatever and had to move on.
- 5:46And I said, well, I don't, you know, I don't know what I'm doing.
- 5:50He said, oh, you'll figure it out.
- 5:51There's a big Barnes and Noble at the top of the hill there.
- 5:54You can.
- 5:54They got a whole section on it.
- 5:55Just go read it.
- 5:56Yeah.
- 5:56Literally.
- 5:57Yeah.
- 5:57And, and I did, and I did.
- 5:59And, you know, it was, I had a passion.
- 6:01I had a burning desire, right?
- 6:02To learn.
- 6:03It was fascinating to me.
- 6:04Yeah.
- 6:05And so I switched over a computer science degree, MIS.
- 6:07And, but by the time I got farther along than that, I was getting paid to program and I was learning a ton more on the job.
- 6:14So that kind of started my career.
- 6:16Do you remember your first experience of getting paid to write code?
- 6:18Was it just like, I can't believe they're actually paying me to do this?
- 6:21Absolutely.
- 6:22Absolutely.
- 6:22It was.
- 6:23Yeah.
- 6:23I mean, it's literally how they say, you know, find something you love and are passionate in and the money will come.
- 6:28And yeah, it did.
- 6:29It certainly did.
- 6:30I was, I really enjoyed it.
- 6:31And yeah, I was getting paid to learn and write applications.
- 6:35So yeah, it was, it was awesome.
- 6:37It was awesome.
- 6:37Yeah.
- 6:37It's fantastic.
- 6:38I remember my first experience like that as well.
- 6:40I'm like, I had better figure this out before they realized I can't actually do this stuff.
- 6:43Yeah.
- 6:44I could do the things they want if I'm like, oh, any moment they're just going to say, no, if you actually don't get to do this anymore.
- 6:49But it was, it was great.
- 6:50Yeah.
- 6:50Yeah, exactly.
- 6:52By that time I said, you know, I have to get on a bigger team and learn.
- 6:54I know I got to the point where, okay, I can write programs, but I don't know how to be an engineer.
- 6:58And I'm not sure I could put it in those type of words.
- 7:01But, but luckily after that, I got on a team and had some great mentors.
- 7:04So yeah, that's, that's how I kind of got started.
- 7:07Yeah.
- 7:07Fantastic.
- 7:08I think that's good advice.
- 7:09You know, it's, it's really cool to be on small teams because you really get to put your hand in so many areas.
- 7:15You're not pigeonholed into, well, I'm the one who optimizes a stored procedure.
- 7:18So I do that.
- 7:19Right.
- 7:19You know, you get like a really broad experience, but at some point when it's like, I'm, there's no one I can talk to or learn from to go farther in this.
- 7:28Then it gets to be a little bit limiting, I think.
- 7:31Yeah, exactly.
- 7:32Like, well, that's how it got for me.
- 7:33I was like, I don't know where to go next.
- 7:35And I don't know who, you know, I didn't have anybody there with me.
- 7:37Yeah.
- 7:38I think having a mentor either, you know, well-structured or kind of loosely structured or whether you look back on it five years and go, oh, that person was kind of mentor for me.
- 7:46It's very powerful.
- 7:47Right.
- 7:47It's very powerful.
- 7:48Yeah.
- 7:48Yeah, absolutely.
- 7:49It totally is.
- 7:50I remember making that transition to a really great group of people who were, every one of them I felt like was way smarter than me.
- 7:56It was intimidating, but absolutely was a good outcome.
- 8:00Yeah.
- 8:00That's the place to be.
- 8:01Right.
- 8:01Unless, you know, of course, I think a lot of us too in tech deal with the ego issue sometimes.
- 8:06I know I did.
- 8:07Right.
- 8:07Like, hey, I'm pretty smart.
- 8:08I know what I'm doing.
- 8:09Then you, when you're young and ambitious, right.
- 8:11And you run into other really smart people that like are smart and you go, okay, I'm not that smart.
- 8:17Yeah.
- 8:18It's a little humbling, but it can be humbling.
- 8:20Yeah.
- 8:20Those are probably good life lessons, but they're hard to take when you're young.
- 8:23I remember.
- 8:24Yeah, absolutely.
- 8:24Yeah.
- 8:25Fantastic.
- 8:26So how about now?
- 8:27What are you doing day to day?
- 8:28Yeah.
- 8:28So I head up the developer relations team at Docker and I get to do what I love.
- 8:32You know, I still get to play around with tech and learn new things and build stuff.
- 8:37But then I also get to transfer that knowledge to others or at least try.
- 8:40So teaching and mentoring is what I do mostly day to day, right?
- 8:44Content and workshops and those types of things.
- 8:46I help folks learn to use containers and Docker to help build applications.
- 8:50Right.
- 8:51So, yeah, it's fantastic.
- 8:53I love my job.
- 8:54Truly do.
- 8:55I can imagine.
- 8:56You know, I really have thought for a long time that this developer evangelist sort of
- 9:01role just seems so neat because you get to work with a bunch of people.
- 9:05You're not really there just closing boring JIRA tickets every day, right?
- 9:09You get to just work at like the fun level of software and really interact with a lot of
- 9:13different people.
- 9:14You get to go to conferences, maybe be on a podcast, all those kinds of things.
- 9:17I just, it's a really cool space to be after you've learned enough in the industry to play
- 9:22that role.
- 9:23Yeah.
- 9:23A hundred percent.
- 9:23I remember seeing, I had thought about the role before, but I think I was at Google's,
- 9:28what is it?
- 9:29Google Next.
- 9:30I think it's their conference.
- 9:31And that was when I kind of, I had known about Dev Advocates and DevRel, but when I saw
- 9:35a couple speak, I was like, oh wait, Dev Advocates.
- 9:37Oh, they get paid to do this.
- 9:39This isn't just, you know, Peter, who's a software engineer, then speaks, right?
- 9:43This is their job.
- 9:44And I was like, oh, that's, that's pretty interesting.
- 9:46Yeah.
- 9:46Yeah.
- 9:46Yeah.
- 9:47It's, I think you got to have the right personality for it, but I think it's really fantastic.
- 9:50I did actually a whole episode, episode 189 on this role.
- 9:55And I had four or five people who were at different companies doing this.
- 9:59So yeah, I was, it's really, really neat.
- 10:00So, you know, I do want to catch up on what is new and Docker and containers in that whole space,
- 10:06but there are a lot of people with lots of different backgrounds.
- 10:09Let's, you know, listen to the show who I'm sure everyone's heard of Docker and
- 10:13containers, right?
- 10:14It's like hearing of Linux or something, but that doesn't mean you're super familiar
- 10:17with it or you really understand the advantages or maybe the history.
- 10:19So let's actually maybe start with just like the history of containers a little bit.
- 10:24I know when I first saw the talk by the original, I think it was the original CEO of Docker,
- 10:31he had a really interesting sort of tie back to shipping containers.
- 10:35Yeah.
- 10:36So what's this whole idea of containers?
- 10:37Where's it come from?
- 10:38What's the deal?
- 10:39Yeah.
- 10:39Solomon Hykes.
- 10:40Yeah, that was him.
- 10:41When I first saw his, I think it was at a Pi conference.
- 10:44Now that I think about it, actually in Europe.
- 10:45Yeah.
- 10:46He gave a quick brief, kind of like what do you call lightning talk, right?
- 10:50And it kind of went over at the end and people like went kind of crazy.
- 10:54And I remember kind of seeing it and I was like, and if you ever go watch it, I recommend people
- 10:58go watch it and kind of look for the aha moment.
- 11:00At least it took me a bit, right?
- 11:02And, you know, he did ran these commands and then, oh yeah.
- 11:04And then there's this process running inside of a container and super easy.
- 11:07And I forget what he demoed, but it took me a while, right?
- 11:11To be honest, right?
- 11:11I stepped back and said, well, okay, we have VMs.
- 11:14What is this container thing?
- 11:15And it took me a little bit to figure out like, oh wow, this is super powerful.
- 11:18But, you know, containers that the constructs to build containers have been around for a while
- 11:23since the seventies, right?
- 11:25And been in Unix, different Unix flavors with change root and those type of things.
- 11:29And then I think around 2000, I believe was when vServe came out and then about eight years.
- 11:38So you had Linux vServe and FreeBSD had some, you know, container-like functionalities to isolate
- 11:44processes into those type of things.
- 11:47So vServe was kind of like a virtual, you know, sitting on top of the core kernel and having
- 11:51some virtualization there.
- 11:52I'll put virtualization.
- 11:53Yeah, when I first heard about Docker, I thought, oh, this is this amazing new thing.
- 11:57And then as I researched it more, I'm like, actually this, the pieces had always, not always,
- 12:02but they had been there for a while.
- 12:03Like these pieces you're talking about, they just hadn't really been put into a nice little
- 12:07package the way Docker has, right?
- 12:09Yeah.
- 12:09Yeah.
- 12:09And I think that's the beauty of what Docker did and Solomon and his team, right?
- 12:13There was, I think there was three founders, but yeah, two is, was it 2013?
- 12:18There it is on the screen.
- 12:19Yeah.
- 12:19So 2013 Docker kind of took off, right?
- 12:22It kind of exploded and it was just that.
- 12:23And I, you know, they simplified containers.
- 12:25These constructs were all there, but they made it easy.
- 12:27The ability to deep, you know, drop back down in, into the details or stay very high level
- 12:32and use, you know, Docker run, Docker push, you know, those Docker build, right?
- 12:37Those three main commands were super powerful.
- 12:40And I think that was the beauty of Docker.
- 12:41They just made it easier for the average developer or, you know, for, if you had to be a Linux kernel
- 12:47developer to kind of really understand containers before that.
- 12:50Yeah.
- 12:51And they simplified it.
- 12:52Yeah.
- 12:52Linux admin or something like that, right?
- 12:55Yeah.
- 12:55Yeah.
- 12:55A hundred percent.
- 12:55And it's kind of like, I think Microsoft did a great job at this.
- 12:59I think Apple has done a great job at this, you know, Microsoft with, you know, VB, right?
- 13:03And I'm going to get beat up on the internets for this visual, visual basic, but visual basic
- 13:08six, I mean, kind of weird, but it was a game changer, right?
- 13:11You had C++ MFC, you know, writing these C++ to write desktop apps and business apps.
- 13:17Right.
- 13:17And VB6 came along and said, oh no, no, it's, you know, if you need a text box and
- 13:21some labels and a button, just drag it on there.
- 13:22Right.
- 13:23Look, I won't beat you up for that.
- 13:24VB was transformative.
- 13:25It was magical.
- 13:27Yeah.
- 13:27The problem with VB was you could go so far and then you're like, well, VB doesn't do that.
- 13:32So now you, now you get a grownup.
- 13:34Now it's time to put your big boy pants on and get a grownup language and suffer the,
- 13:38you know, C++ huge gap.
- 13:40But for what you, a lot of people built with that, it was incredibly easy.
- 13:44To be honest, there's nothing like that today that I can think of.
- 13:47That is so powerful for building a little distributable application I can give to you.
- 13:52Yeah.
- 13:52Electron feels super complicated and hard.
- 13:55Python, you can build stuff, but it's always kind of like, but this is a challenge or that,
- 13:59you know, even though the windows stuff with WPF is, it's way more complicated than like,
- 14:06it was magic, right?
- 14:07It's just, it's too bad that there's not sort of a semi-modern version of something that
- 14:12simple for people.
- 14:13Yeah.
- 14:14And if, who knows if, if Visual Basic had curly braces, we might have a different story.
- 14:18I mean, like, like truly, right?
- 14:21I mean, I remember having debates with, yeah, what's not a real language?
- 14:24It's, you know, it's basic.
- 14:26It's the basic programming language, right?
- 14:27But yeah.
- 14:28Yeah.
- 14:28Yeah.
- 14:28Yeah.
- 14:29And John Sheen out there in the live stream says, rad concepts seem to be coming back as
- 14:33these low code, no code platforms.
- 14:34That's a really interesting tie in there.
- 14:36I do agree with that.
- 14:38I think that they've gone even lower than, or simpler than what Visual Basic was to like
- 14:42really, really simple.
- 14:43So yeah, I'm not sure it's exactly equivalent, but it's definitely, you're right.
- 14:47Those things are definitely coming back.
- 14:48Yeah.
- 14:48I think we were real complicated.
- 14:50Now we're going real too simplifying, right?
- 14:52The pendulum swings hard.
- 14:54Yeah.
- 14:54I think we'll find it.
- 14:55I do believe though, with technology, right?
- 14:58Abstractions get higher and higher.
- 14:59And well, this will kind of roll in a little bit into where the container history went
- 15:03next.
- 15:04And, you know, 2017, 18-ish, Kubernetes kind of dominated the orchestration, right?
- 15:11And still does.
- 15:12But it is, I was going to say horribly complex.
- 15:15And maybe it is, maybe I'll get beat up for that too.
- 15:17But it is extremely complex, right?
- 15:20Extremely complex.
- 15:21And you're mostly talking about like running a Kubernetes cluster is complex.
- 15:26Not necessarily like somebody's already set up for you and you give them a-
- 15:29of a definition and say, run that.
- 15:31Like that part might not be so hard, but like if you're going to do the whole stack, right?
- 15:34Yeah.
- 15:34The whole stack from the ground up, right?
- 15:36Yeah.
- 15:36So it's a bunch of moving parts, getting installed, getting everything working together.
- 15:39Security, networking.
- 15:41Yeah.
- 15:41It's not simple, right?
- 15:44It's not simple at all.
- 15:45This portion of Talk Python To Me is brought to you by Datadog.
- 15:49Are you having trouble visualizing latency and CPU or memory bottlenecks in your app?
- 15:54Not sure where the issue is coming from or how to solve it?
- 15:57Datadog seamlessly correlates logs and traces at the level of individual requests, allowing
- 16:02you to quickly troubleshoot your Python application.
- 16:05Plus, their continuous profiler allows you to find the most resource-consuming parts of
- 16:09your production code all the time at any scale with minimal overhead.
- 16:13Be the hero that got that app back on track at your company.
- 16:16Get started today with a free trial at talkpython.fm/Datadog, or just click the link in your
- 16:22podcast player's show notes.
- 16:23Get the insight you've been missing with Datadog.
- 16:26I think it'll get easier and easier and easier and orchestrated run times.
- 16:31You know, I see a lot in tech, like the app engine from Google with Python, right?
- 16:36Well, basically serverless now.
- 16:37But when it first came out, you're like, what, you're going to run my whole app?
- 16:41No, no, no, no, no.
- 16:41I need to control all that.
- 16:42Yeah.
- 16:43So we did away with it.
- 16:44But now we're coming back.
- 16:44You know, serverless, we're kind of coming back to it.
- 16:46Same with Kubernetes, right?
- 16:47Oh, you're ECS and ACI on, you know, hey, give me a container.
- 16:52I'll just run it and manage it.
- 16:53You know, we said, no, no, no, no.
- 16:54I need to control all that.
- 16:55And then you get this massive Kubernetes.
- 16:57And now I think we're going back, right?
- 16:59Yeah.
- 17:00I just want to give you my containers and run them for me, right?
- 17:02I don't have time to deal with all this.
- 17:04And Google's and Google announced autopilot and those type of things, right?
- 17:08So I think that's the way we're going to go.
- 17:09And I think Docker as a company, about a year ago, when we sold off the enterprise, a little
- 17:14over a year ago, sold the enterprise business off, got a kind of package software, enterprise
- 17:18software, moved more to SaaS, back to developers.
- 17:21Yeah.
- 17:22Well, let's dig into that for a minute, because I remember seeing Docker coming along and it
- 17:26was like, oh, this is a really cool, really cool dev tool.
- 17:28But how are they going to make any money out of this?
- 17:30And I feel like the first big step was, well, what we're going to do is we're going to have
- 17:34special offerings for enterprises and help them tame their zillions of different types
- 17:40of software they need to run.
- 17:41It sounds like that that's not the case anymore.
- 17:43What's that transition?
- 17:43What's happened with Docker around that?
- 17:45I think first the business model was we shifted to an enterprise business model.
- 17:49Prior to that, Docker was just exploding, right?
- 17:51And building tools and every Docker con, there was a new release and a new tool.
- 17:55And a lot of them would fizzle out and stuff like that.
- 17:58And the people with the purse strings, the money said, hey, hold on, this is great.
- 18:02You're doing some wonderful things.
- 18:03But we want our money back eventually.
- 18:05So can you go sell something?
- 18:08And they probably-
- 18:09Open source and Cumbia, we all love it.
- 18:11But we're investors.
- 18:13Where's our 10X?
- 18:14Yeah.
- 18:14Yeah.
- 18:14So we shifted a little bit to enterprise.
- 18:16And it was just an old business model, I think.
- 18:18On-prem, long licenses, three-year licenses, at least a year, if not three years.
- 18:24And then consulting on top of that.
- 18:26So paying a couple of hundred thousand dollars for the software and then twice that for consulting
- 18:31services.
- 18:32It was just a model that's a little bit outdated.
- 18:34And it's still there, of course.
- 18:36But Salesforce was really the first that kind of was starting to drive the nail into the coffin,
- 18:41so to speak, right?
- 18:42Well, it seems to me where a lot of those stories are moving are, are you moving to Azure?
- 18:48Are you moving to AWS?
- 18:50Are you moving to Linode?
- 18:51Instead of trying to solidify and really modernize the data center inside companies, a lot of them
- 18:57are going, how can we just get out of the data center business?
- 18:59In which case, that's a totally different story, right?
- 19:02In terms of how they work with you guys.
- 19:04We did have an advantage, you know, cross cloud, one single plane of glass for all your containers
- 19:08across clouds, internal, external.
- 19:10But it was just, it was a day late and a dollar short with funding when we kind of tried to
- 19:15do that.
- 19:16And yeah, so they sold off the enterprise business and focused back on what Docker does
- 19:20really well is build development tools, development experiences, making container development first
- 19:26really easy, right?
- 19:28And that's kind of what we're focused on.
- 19:29We call it shift left, right?
- 19:31Focusing back on the developer.
- 19:32We're still very interested in ops and DevOps and DevSec ops, but more from a developer's perspective
- 19:38and not that day two long-term running your production environments and stuff.
- 19:42Yeah.
- 19:43And so we got small again, got focused again.
- 19:46You know, we have something like 10 million developers or 10 minute desktop installs, you
- 19:51know, billions of images being pulled out of Hub and kind of looked at it and said, hey, there's
- 19:56a business here, right?
- 19:57Just official images on Hub is a huge, huge asset for us, right?
- 20:01You know, with Python and packages and all the languages and runtimes, right?
- 20:06To get really good, high quality scanned packages is hard, right?
- 20:11And Hub does that.
- 20:12So you know where you're getting your Mongo database from, who's produced it.
- 20:16Docker kind of puts their stamp on it.
- 20:17Okay.
- 20:17So you guys have like officially verified, certified, either direct images or Docker files that build
- 20:24the images out there?
- 20:25Yeah.
- 20:25Yeah.
- 20:26So we have official images, which we kind of say, hey, this is following best practices.
- 20:30This is, you know, been scanned for security vulnerabilities.
- 20:33That doesn't mean there's not security vulnerabilities in there.
- 20:35If anybody works in the security space, right?
- 20:38That's like impossible.
- 20:39Yeah.
- 20:40Lowers your attack surface.
- 20:42This is the, we're recording this the week that we're basically hearing, you know, 60,000
- 20:46direct companies have been compromised by the Microsoft Exchange vulnerability.
- 20:51And then they're probably providing products to others, right?
- 20:53Like it's, it's tough.
- 20:54Yeah.
- 20:55Yeah, it is.
- 20:56But at the same time, there's also a lot of news around supply chain vulnerability.
- 21:00And the SolarWinds thing was a supply chain vulnerability.
- 21:03I don't believe the, you don't know, but I don't believe the exchange one was.
- 21:07But, you know, Docker is certainly part of that supply chain, either strengthening or weakness
- 21:12there, right?
- 21:13Like we hear about how PyPI and npm and RubyGems and all of those have people have been, you know,
- 21:18putting renewed interest in trying to get bad things into there.
- 21:21I always have the same thought about Docker if I just grab an arbitrary Docker file off
- 21:27the internet because, oh, look, this configures the thing that I need.
- 21:29And I Docker build Docker run.
- 21:31Well, it might be configuring it with extra goodies for someone else right in there.
- 21:35Right.
- 21:35And so that sounds like a really good thing to, you know, at least have verified to the degree
- 21:40that you guys can.
- 21:41Yeah.
- 21:41Yeah.
- 21:41You used to be with security, right?
- 21:43It's, I remember sitting at a large computer manufacturing company here in central Austin,
- 21:48central Texas.
- 21:49I won't mention their name, but, you know, we're getting, oh, nice.
- 21:53Thank you.
- 21:54Yeah.
- 21:54So we're, you know, launching a big release and we're all sitting in the go, no go meeting
- 21:59and it's, you know, a couple of days before release.
- 22:01And of course, then that's when the security team walks in.
- 22:04Right.
- 22:05And they're like, oh, you know, like literally like dropping down.
- 22:08Hey, you didn't fill out your, your TPS reports.
- 22:11And exactly.
- 22:11Well, that's such the wrong time to do it because, you know, a lot of those ideas have to be built
- 22:16in early and you've got to, yeah, it's really tricky to layer that on at the very, very end.
- 22:20A hundred percent.
- 22:21And now with containers, developers a lot more are closer to the operating system and worrying
- 22:26about it.
- 22:27You know, before you had your VM and you had, you know, you had ops folks taking care of that
- 22:32was patching them and keeping it.
- 22:33Here's my code.
- 22:34It's going to need Nginx and uWSGI.
- 22:35You figure that out.
- 22:36Go.
- 22:36Right.
- 22:37Yeah.
- 22:37Now we're throwing it in containers and devs are doing a lot of that.
- 22:40So shifting that security even farther left to, Hey, scan your images, make, you should
- 22:45know what's going in your images.
- 22:46You know, what base images you're using, those types of things are super important.
- 22:49Yeah.
- 22:50Okay.
- 22:50And controlling that whole light, like you said, that, that whole life cycle, right.
- 22:53Of, of when you're building your images and how through CI/CD, right.
- 22:57Doing the consistency consistently, making sure you're doing scans.
- 23:00Right.
- 23:00So you can protect that whole pipeline.
- 23:02A hundred percent.
- 23:03Yeah.
- 23:03We definitely need to be thinking about that as an industry.
- 23:06It's serious.
- 23:06Yeah.
- 23:07There's so many smart people out there and they move fast.
- 23:10They move really fast and keeping up with the hackers is hard.
- 23:13That's for sure.
- 23:15That's for sure.
- 23:16So one of the things I thought it might be fun to touch on is just some of the areas
- 23:20that containers are useful, maybe some of their, their benefits, things like that.
- 23:25Right.
- 23:25I think there's a lot of different use cases that are not, well, it makes DevOps more consistent
- 23:30with development, even though that may be one of the benefits.
- 23:33Yeah.
- 23:33You know, the biggest problem that Docker solves is that packaging.
- 23:37It runs on my machine.
- 23:38Right.
- 23:38And that's been part of our marketing since the beginning.
- 23:40It works for me.
- 23:41Right.
- 23:42There's a fantastic thing that people should Google.
- 23:44Maybe if I can find it, I've put it on the show before, but there's a thing called, it
- 23:48works.
- 23:49It works on my machine certification.
- 23:51You can get the official certification.
- 23:55This is done by Jeff Atwood and some folks.
- 23:58Oh, that's fantastic.
- 23:58And another guy over there.
- 23:59And so you get this big banner.
- 24:00It says, it works on my machine.
- 24:01And the way you get it is you compile your code and getting the latest from any version
- 24:06control, getting the recent from that is totally optional and up to you.
- 24:09You launch the application that has been compiled.
- 24:11You cause at least one code path to be the, to, that needs to be checked, to be executed.
- 24:16The preferred way to do this is ad hoc manual testing.
- 24:19You may omit this step.
- 24:21If the code change was less than five lines or in the developer's professional opinion,
- 24:25it couldn't possibly result there.
- 24:27And then you check it into source control.
- 24:29Right.
- 24:29And so, yeah, I mean, that's, that's a joke.
- 24:31And the reason I bring it up is it's just, you know, so common in the industry that you
- 24:36run into this, this problem, right?
- 24:39That, well, we tested over here and under this environment, it works fine, but in a different
- 24:43environment, it doesn't.
- 24:44And, you know, we try to backfill that with things like CI/CD and whatnot, but it's, you
- 24:48know, it's still, it's not a perfect fit.
- 24:50So with, with Docker, you can get much closer to running on exactly the same system.
- 24:55Yeah.
- 24:55Yeah.
- 24:56The idea is not only package your app, but package the operating system, all of its
- 25:00dependencies, your app, its configuration, all the application dependencies all in one package,
- 25:06right?
- 25:06Into an image.
- 25:07And then pass, share that around, right?
- 25:09Makes it so much easier.
- 25:10Yeah.
- 25:10At that large computer manufacturer, right?
- 25:12We had two huge data centers.
- 25:14And I talk about this in my getting started video, you know, 50 in each center just for
- 25:18the browse layer and dub, dub, dub.
- 25:19And if you go through and patching those machines, those 50, and you miss one.
- 25:23And of course we had scripts and all that, but you know, we still had them manually.
- 25:27You list of what servers are in and out of the, out of the data center, who's in DNS,
- 25:31who's not right.
- 25:32You miss one.
- 25:32And then you get this, these, these random errors where I hit three good servers, the
- 25:36fourth one breaks, and then you hit F5 and you go back to server two and you're fine.
- 25:40Right.
- 25:40Yeah.
- 25:40That's really tricky when it's, it's going, you know, could be round Robyn type of
- 25:45load balancing.
- 25:46And you're like, well, sometimes it's wrong, but I don't know when.
- 25:48Right.
- 25:49Yeah.
- 25:49So we used to just go and, you know, restart all the servers one by one.
- 25:53Some of the, some of the troubleshooting.
- 25:54Yeah.
- 25:55Some of the troubleshooting you get into is like, we have no idea.
- 25:57Yeah.
- 25:58So I think Docker really, really attacks that really well.
- 26:01But then when you looking at developers, what I'm really excited is, you know, moving into
- 26:04microservices and kind of more modern cloud first kind of development.
- 26:08Right.
- 26:09Again, getting everything running on your machine, you know, 10, 15, a hundred microservices that
- 26:14you're not going to use.
- 26:15You're not going to touch.
- 26:16You don't work on, but they need to be there.
- 26:17So, you know, you have this mesh of microservices or even just three or four of them, right.
- 26:22That work together.
- 26:23You have to have your sign on, you know, your single sign on, blah, blah, blah, all these
- 26:26things and getting databases and queuing and everything running locally is hard.
- 26:31Right.
- 26:31If I got to install Mongo and SQL server locally, and then maybe projects are using two different
- 26:37versions.
- 26:37Right.
- 26:37So now if everything's in containers and then if you're using compose, which I'll use orchestration
- 26:43loosely here, but it orchestrates your containers locally.
- 26:46Right.
- 26:46Because Docker is all well and simple and easy.
- 26:49When the goal is I need to fire up this Docker container and I put the thing I want to run
- 26:53at the end, you know, I say Docker run, you know, container something.
- 26:58But if I want to run multiple things and they've got to discover each other on the network, they've
- 27:03got to have DNS names.
- 27:04And this one has to start before that one.
- 27:06Right.
- 27:07All of a sudden it's a whole, a whole nother level of like manual challenges to do that
- 27:12by hand.
- 27:12So Docker compose is basically a way to write a file that takes a bunch of Docker containers
- 27:17and starts them the right way with the right ports and everything.
- 27:21Yeah.
- 27:21Exactly.
- 27:21Exactly.
- 27:22Wire gives you kind of built in discoverability.
- 27:25So DNS, you can easily plug in volumes and share volumes across your containers.
- 27:30Yeah.
- 27:31Super powerful.
- 27:32And it's also a way to, like you said, writing out all these Docker run commands and then your,
- 27:36you know, your run command is huge.
- 27:38You can put that all into a compose file and then you use version control.
- 27:42Things like that.
- 27:43Yeah.
- 27:43Yeah.
- 27:44And then once I, yeah, exactly, Michael, I could set up and then, you know, setting up a
- 27:47new dev.
- 27:48Hey, you know, pull latest from GitHub and Docker compose up and, you know, brings your
- 27:53application up.
- 27:54I've got a couple of ideas here that I thought might be fun to bounce off you.
- 27:57And the very first one on the list is onboarding new developers.
- 27:59Yeah.
- 28:00I mean, it's one thing to say, well, we're going to create a new project.
- 28:02I want to work on it, but almost no one starts jobs with brand new projects.
- 28:06They start jobs with, here's what we've been working on for four years.
- 28:09It's kind of clunky, but it works.
- 28:11Go.
- 28:12Right.
- 28:13A hundred percent.
- 28:14A hundred percent.
- 28:14And I wrote, I wrote a blog post about this, but, and then my mentees, right.
- 28:18A lot of them come out of bootcamps and, you know, they're used to right click new
- 28:21project.
- 28:22Right.
- 28:22And I'm like, that's not where you're going to go.
- 28:24Right.
- 28:24You're going to jump into a code base that is not the latest and greatest react, you know,
- 28:28functional components, right.
- 28:30You're going to have old stuff and you got to be productive.
- 28:32It's a huge, I mean, I'm sure the audience will know.
- 28:34It'd be great to hear, you know, the last time you joined a dev team, how long it took
- 28:38you to just get your computer set up and get your environment set up and get familiar.
- 28:41Right.
- 28:42It's a week, at least a week, if not two weeks.
- 28:45Or, you know, your machine dies and you're like, well, now I got to get it all set up
- 28:49again.
- 28:49I haven't done that for a year and a half.
- 28:50So I forgot how to do that.
- 28:52Right.
- 28:52Yeah.
- 28:52I'm trying to get everything into containers as much as possible, run everything in containers.
- 28:56When you get into the GUI apps, it gets a little fun, but yeah, if you're running everything
- 29:01in containers, it makes it super simple to be able to move those onboard new devs.
- 29:05Yeah.
- 29:05A hundred percent.
- 29:06A hundred percent.
- 29:06So another one of those that I think we kind of already touched on more or less is reliable
- 29:10development.
- 29:11Like everybody's working literally on the same system and you don't have the, you know, works
- 29:16on my machine certification thing.
- 29:17Yeah.
- 29:17A hundred percent.
- 29:18Another one though is, you know, I'm here on my Mac, but maybe I want to do things that
- 29:23are as close as possible to where I deploy my various stuff things, which is Ubuntu, right?
- 29:31And Mac is kind of like Ubuntu.
- 29:32I mean, it's got sort of a Unix flavor to it, but it's not Ubuntu itself.
- 29:37It's not exactly that.
- 29:38Right.
- 29:38And so having this ability to be closer to the environment that you're going to run at,
- 29:45or you're going to deploy to, even though you happen to be developing in on something
- 29:48that's not that.
- 29:49Yeah.
- 29:49Being able to get correct versions, right?
- 29:52Of everything across your stack is, is very hard, right?
- 29:55It seems simple, but it's not.
- 29:57I mean, I could get Nginx.
- 29:59I could brew install Nginx onto my machine, which I probably have done already, but maybe
- 30:03I've got like the latest, greatest, whereas by default over on Ubuntu, if I just say, you
- 30:08know, app install Nginx, I think it's held back a little ways for some reason, unless you
- 30:12really like configure it for the latest sources.
- 30:14And so, you know, maybe the configuration file has something new that I could do on my machine
- 30:19that's supported.
- 30:19But if I try to put it out there, it's just going to, you know, service failed to start.
- 30:23Yeah.
- 30:23Go find a log file somewhere and figure this out.
- 30:25Right.
- 30:25And that's, especially when you're new, it's like, I don't even know where the log files are.
- 30:28Why is this happening to me?
- 30:30It's so frustrating.
- 30:30Right.
- 30:31Right.
- 30:31Yeah.
- 30:32You're pulling down a project and the remia getting started is compile, right?
- 30:36Make run, make, right?
- 30:38Yeah.
- 30:38And if unless you're a C, a Linux C developer and you start getting errors, you know, off the
- 30:43stack overflow, you go and start randomly trying things.
- 30:46Right.
- 30:47And that as a senior developer, you know, I'm like, I'm so scared.
- 30:51I'm a foobar my machine.
- 30:52Right.
- 30:52Cause I'm just changing settings and stuff.
- 30:55And yeah.
- 30:55Yeah.
- 30:55But if you were doing that all inside of your container and really a Docker file is, is the
- 31:00steps you would do to install an application.
- 31:02Right.
- 31:03And so they're all there repeatable, have the correct versions of, you know, libraries
- 31:07all in the image.
- 31:08Right.
- 31:08I think it's a simple preconception to have is like Docker saves me from knowing Linux in
- 31:14terms of the command.
- 31:14So I don't need to know Linux if I'm going to run on Docker and maybe off to Kubernetes or
- 31:18whatever.
- 31:18And so I can just do Docker and then everything will be fine.
- 31:21But in practice, like those steps you just described, those are apt install this, you know,
- 31:28and the various configuration commands of Linux itself.
- 31:31So there, you do need to know a little bit.
- 31:33There's a very small subset that you need to do, but you know, you don't really have to be
- 31:37an admin of Linux.
- 31:38So I do think it takes down the bar, but I still think it's interesting that it's, you still
- 31:42kind of have to know a little bit about how to set up the system.
- 31:44Yeah.
- 31:44Yeah.
- 31:45And it's nice because you can start high level, like, Hey, I just run my, my, my
- 31:48Mongo image and it works and I'm not exactly sure.
- 31:51Right.
- 31:51I just, here's the connection string.
- 31:52We're good.
- 31:53Yeah.
- 31:53Here's the connection string.
- 31:54And then if you start, okay, I want to build my own and I want to get slimmest images as
- 31:58possible, right.
- 31:59You're going to, you're going to start diving more in it.
- 32:01And really the skillset to build your images is you have to understand Docker, but then
- 32:05you also have to understand Linux commands, right?
- 32:07How to install things on Linux, configure them for sure.
- 32:10But you don't, to your point, right.
- 32:11You don't have to start there.
- 32:12Like don't become a super, you know, admin, you know,
- 32:16get the Linux command line Bible or whatever book it is.
- 32:19Like start tearing through it.
- 32:21Right.
- 32:21I think that's a book.
- 32:22Yeah.
- 32:22I think it is too.
- 32:22You can go very far with, without knowing that just basic Linux commands.
- 32:26Yeah.
- 32:26Yeah.
- 32:27I got a few examples of like, these are the three things you really got to do.
- 32:29Yeah.
- 32:30And the nice thing too, about official images that you can, they're stored in GitHub too.
- 32:35So if you go in the hub and see it, you can jump into the GitHub repo and actually read
- 32:39the Docker file.
- 32:40So it's great way to kind of, kind of learn, right.
- 32:42Of best practices and those types of things.
- 32:45Yeah.
- 32:45Yeah, absolutely.
- 32:46You talked about building like thin images and whatnot.
- 32:49One of the interesting things is taking these Docker files and layering them, right?
- 32:54Like instead of just saying, I'm going to, I'm going to need Nginx and I'm going to need
- 32:57Python and I'm going to need all this.
- 32:58So let's just build one that has all that.
- 33:00And then any minor change you make to the Docker file means you completely rebuild all of that
- 33:06stuff.
- 33:06And maybe part of that's compiled from source that takes two minutes.
- 33:08And it's like, why is this so slow?
- 33:10Right.
- 33:10Right.
- 33:10You could make that four or five Docker files that one depends on the other that depends
- 33:14on the other in very subtle, small ways.
- 33:17So like only the very last bit that changes maybe really requires much work.
- 33:21Right.
- 33:21You want to speak to that a little?
- 33:22Yeah.
- 33:22So you can do two things in there.
- 33:23I think you want to make sure one of the best practices you want to do is only one
- 33:27run one process inside of a container.
- 33:30And I'm going to, I'm going to, I use container and image sometimes interchangeably.
- 33:34So, and then I get, I get yelled at for the people's on the internet.
- 33:38I'm probably making it wrong.
- 33:39So I'm an image, I believe.
- 33:41Yeah.
- 33:41No.
- 33:41And you're totally fine.
- 33:42Right.
- 33:42Cause you can use them interchangeably, but so container is just a running image, right?
- 33:46And if you're a computer scientist or object-oriented programmer, it's your class and your
- 33:51objects, your class is your image.
- 33:53And then your object is your container.
- 33:54So containers are instance of running.
- 33:57And I use them interchangeably all the time.
- 33:59And I get yelled at in a lot of my talks, but, but generally speaking one process running
- 34:03inside of your container, you know, it's the, it's the old Linux idea, separation concerns,
- 34:07do one thing, do really well, microservices, those types of things.
- 34:10But then to be able to create your images as small as possible, right?
- 34:13You can do multi-stage builds is what we call it.
- 34:15So you can have a stage in your Docker file.
- 34:19That has all your compilers, your libraries, everything you need to build your application.
- 34:24Make that one part of your Docker file.
- 34:27And then below that you can reference that.
- 34:29And so like a lot of Golang stuff, and we do this internally is we'll use Docker to build
- 34:34all our apps, multi-architectural to architect.
- 34:36And then below that, just pull out the compiled binary and put that in my image.
- 34:40So now your image is extremely small.
- 34:42It only has your executable in it and everything else that you compiler tools, GCC, all that
- 34:47type of stuff is left out.
- 34:49Oh, that's interesting.
- 34:49Yeah.
- 34:50So those are kind of like throwaway containers.
- 34:52It'll do everything in container, get your nice dev build environment, build it, and then
- 34:56pull only what you need out.
- 34:57So even like in a node world where you're not, it's not a compiled, compiled language or Python's
- 35:02compiled, not a compiled language, right?
- 35:04You could do everything you need in an earlier stage and then pull that out.
- 35:07Just what you need into the final stage to be able to serve those up in your runtime.
- 35:11That's it.
- 35:11And that's the best way to kind of get the smallest, lightest images you want.
- 35:16And the smaller and lightest that you can get them, then they're easier to pass around.
- 35:21They're easier to start.
- 35:22They're faster to start up.
- 35:23And the attack surface from a security perspective is very small.
- 35:27Yeah.
- 35:28Less is better there.
- 35:29Less is better.
- 35:29Yeah.
- 35:29Absolutely.
- 35:30All right.
- 35:30Some other areas that I think two more that are certainly related, but not exactly the same.
- 35:36I feel like the data science side has a lot to gain from the whole container stuff because
- 35:41so often the environments are multi-technology.
- 35:45You know, you might have, oh, we're going to use this library and it depends on Fortran.
- 35:49We'll use this library and it depends on Rust.
- 35:51And then we're going to control that from a Jupyter notebook.
- 35:53And it's, you know, it's different environments make that harder, easier to set up.
- 35:57And so I feel like data science has a lot to benefit from here as well.
- 36:01I think so too.
- 36:02And that's not my world day to day for sure.
- 36:05And so I gave a talk at the Toronto machine learning group a while back.
- 36:09The talk should be online.
- 36:10So if you're interested, you'll be able to check that out.
- 36:11And when I was step back and really thought about what I wanted to talk about and how is
- 36:15Docker really helpful in these scenarios.
- 36:17And it's kind of all the things we've been talking about.
- 36:19It's how do I share my data set with other data scientists, right?
- 36:24And you can put those in images and you can put those in volumes and share those, right?
- 36:28And then how do I get a consistent environment to, you know, reproducibility is the biggest
- 36:34thing in science, right?
- 36:35Right.
- 36:35That's the other half of that that I was hinting at.
- 36:37That's right.
- 36:37Yeah.
- 36:37Yeah.
- 36:38And so having that reproducibility that I can share with other scientists and you have everything
- 36:43packaged together that I was running, right?
- 36:44And you might swap out the data with your own data, but the processes is all the same.
- 36:48So I think reproducibility is huge and talking with those folks, the machine learning folks,
- 36:53that's what they were looking for, right?
- 36:55Is how do I pass this around?
- 36:56How do I share this?
- 36:57How do I get my environment up quickly without having to become a full-blown computer scientist,
- 37:02right?
- 37:02A software engineer.
- 37:03Or an admin or something.
- 37:04An admin, yeah.
- 37:05Well, one of the challenges in science in general, I believe lately is there's been,
- 37:09what do you call it?
- 37:11A crisis of reproducibility, but like a real focus on reproducibility.
- 37:14And because of that, I think some folks have realized certain studies are very hard to
- 37:18reproduce.
- 37:19And it used to be what they would publish is, here's a graph I generated with my software
- 37:23and here's the analysis of the graph.
- 37:24And you're like, well, that could mean anything.
- 37:26I can make a graph out of anything.
- 37:27That doesn't mean very much, right?
- 37:29And so then the move to like Jupyter Notebooks and IPython and so on to say, well, here's the
- 37:33code and here's the graph and here's the explanation.
- 37:35And that's a fantastic.
- 37:37But what version of the library that maybe had a small interior change that no one sees
- 37:43that might propagate some change down there.
- 37:46And you can solidify all that stuff into a Docker container and then say, this is exactly
- 37:52what we ran.
- 37:53At least maybe it was wrong.
- 37:54Maybe it was right.
- 37:55But this is what we did.
- 37:56Yeah.
- 37:56Yeah.
- 37:57Just even a minor tick in a version of an algorithm that's processing the data, right?
- 38:01And I'm one tick behind you.
- 38:03And well, that's not the same, right?
- 38:05It's not the same.
- 38:06Yeah.
- 38:06It might be okay.
- 38:07But we need to know that that's how the difference is.
- 38:09Yeah.
- 38:09You know, one thing that's interesting.
- 38:10Have you seen this project Gigantum?
- 38:13No, I haven't.
- 38:13Okay.
- 38:14So this one, I had these guys on the show back on episode 238 and it's really all about
- 38:19Docker.
- 38:19It's super interesting.
- 38:20Oh, cool.
- 38:20So it's like a collaborative way for building like local environments in Docker, but then
- 38:26sharing those and then people can work on them and then you can like publish them to the
- 38:29cloud.
- 38:29And there's like all these cool activity streams.
- 38:31And it's just all about orchestrating data science with facilitating that by doing Docker.
- 38:37They have interesting things.
- 38:38Like if you go in and open up like a terminal and you type some commands, I believe they try to
- 38:42like capture those and make those part of what has to be done to the Docker container, even
- 38:46though you didn't change the files.
- 38:47They're trying to do a lot of stuff to make it like really the same.
- 38:50So I don't know.
- 38:51It's an interesting idea.
- 38:52Oh, that's interesting.
- 38:53I'm going to go check it out.
- 38:54Yeah.
- 38:54Jumping back to our earlier conversation, building that Docker file, right?
- 38:57Is, is, and you, especially when you're learning commands, right?
- 39:00That build debug cycle, test cycles can be painful a little bit.
- 39:04Yeah.
- 39:04So we're trying to think about that at Docker, right?
- 39:06Like it's one thing to have an image and just run it and use it.
- 39:09And then it's another to build, build an image, right?
- 39:11A very complex image and kind of, so what you end up doing is kind of what you say.
- 39:15You create a base image and then you're inside of that running commands and then go, crap.
- 39:19Okay.
- 39:19What did I run there?
- 39:20Exactly.
- 39:21You go write that down.
- 39:22Yeah.
- 39:22We kind of love to reverse sometimes.
- 39:24That thing I just did to make this work, make that part of the Docker file, you know?
- 39:28Right.
- 39:29Extract what I did.
- 39:31Those five things I typed on the command, the terminal command prompt.
- 39:35When I logged in with Docker run, you know, Z shell or bash.
- 39:39Yeah.
- 39:39I need that too.
- 39:40Yeah.
- 39:40A hundred percent.
- 39:41A hundred percent.
- 39:41Yeah.
- 39:42Advice.
- 39:42Do you got advice on that?
- 39:43I mean, it's basically a saving at each point right now.
- 39:47It's very low fidelity, right?
- 39:48You're, you're running the command and then, and trying to remember.
- 39:51Right.
- 39:51And it's painful.
- 39:52Yeah.
- 39:53Yeah.
- 39:53It's very painful.
- 39:54Some up arrow action.
- 39:55Like, okay, I did that.
- 39:56Then down arrow, down arrow.
- 39:57Okay.
- 39:58Those are the things.
- 39:58Something like that.
- 39:59Yeah.
- 39:59Yeah.
- 40:00Yeah.
- 40:00We've been playing around with some interactive, lightweight kind of, I say editors, but tools,
- 40:05right?
- 40:05To, to build your images.
- 40:07So the concept of building an image from scratch, it's where you kind of, you can do a top or a Docker file, say from, you know, Ubuntu or from Alpine.
- 40:15Well, you can do from scratch and that's literally nothing.
- 40:18Right.
- 40:18And you're moving everything in yourself and that's tough, but it's, if you, the most secure and leanest image, that's the way to do it.
- 40:26And yeah, so we've been thinking about tools around that and it's exactly that capturing what you're doing and what works.
- 40:31Right.
- 40:31So you can play a little bit and take, try and figure things out.
- 40:35And then once you figure it out, you're like, oh crap, what, what was that sequence that just worked?
- 40:39Right.
- 40:39Cause I did five things, but those three things were what actually worked and that could be tough for sure.
- 40:44I find that what I do is I'll fire.
- 40:47I'll try to create the Docker file.
- 40:48It'll invariably fail in some way that I didn't predict.
- 40:51So then I'll get it as far as I can run it in an interactive mode and try to, you know, get it to go to where I want it and then go, okay, well, these are the steps.
- 41:00And maybe it errored out during the build, but you couldn't figure out why.
- 41:03So you want to go explore something to see what the log generated for that failure.
- 41:07Right.
- 41:07There's a little bit of back and forth.
- 41:08Yes.
- 41:09A hundred percent.
- 41:09A hundred percent.
- 41:10Yeah.
- 41:10What do you think about things like attaching, basically using Docker within some of these tools like PyCharm and VS Code both have these ways to say, just run this, but in Docker when I pressed debug.
- 41:23Yeah.
- 41:23My old school developer, you know, no fancy editors, right?
- 41:29Text editor, you know, it dies a little bit inside, but I've had to get over that.
- 41:33Right.
- 41:33I'm like, no, do these, right?
- 41:35Like I tell my mentees too.
- 41:37I'm like, okay, when we start, like you're in a text editor, remove all, remove all the tools.
- 41:41Cause you've got to feel the pain to understand what helps.
- 41:44Yeah.
- 41:44Yeah.
- 41:45Sure.
- 41:45But with that said, right.
- 41:46Yeah.
- 41:47I mean, the tools are fantastic, right?
- 41:49The context switching, right?
- 41:50If you can stay right in your ID, your main tool and do everything within there and do it really well is super powerful.
- 41:56The VS Code plugin is super powerful, right?
- 41:59Of managing your containers, running containers, dev containers, connecting into ACI and Azure and launching your containers right there.
- 42:06It's extremely powerful.
- 42:08Yeah.
- 42:08Yeah.
- 42:08I feel like it's going to get to the point where you might be running stuff in Docker, but you don't even know it.
- 42:12Yeah.
- 42:12You might conceptually know, but there's nothing about what you do or what you see that makes you feel like, oh, it's running in Docker.
- 42:18You just, I pressed run.
- 42:19It did these things.
- 42:21I saw it in my browser or I saw the output.
- 42:23Yeah.
- 42:23I don't know where that happened.
- 42:24Right.
- 42:24But it happened in Docker.
- 42:25Exactly.
- 42:26Yeah.
- 42:26It just works.
- 42:27Right.
- 42:27Yeah.
- 42:27That's where we're trying to go is like with our tools is like you, the more, you know, you're, they get out of the way, right?
- 42:33They're not in your way is maybe the best way to say it.
- 42:35Yeah.
- 42:35Really good tools.
- 42:37You kind of, you kind of go, does that really doing a lot for me?
- 42:40And then when you figure it, you're like, oh yeah, it's doing a ton.
- 42:42I just didn't, don't know it.
- 42:43It does it so well.
- 42:45Right.
- 42:45Exactly.
- 42:45I think we have time for a few more topics that we can touch on.
- 42:49So we talked about the multi-container stuff and we talked about, you know, run this on my cloud.
- 42:54And I feel like a lot of times what that means these days is Kubernetes, right?
- 42:58Everybody seems to have a hosted Kubernetes offering.
- 43:01Sometimes that means just give us your container.
- 43:03Others that means, well, we'll really just run the cluster sort of configure it for you, but you kind of got to still own those VMs that run it.
- 43:10There's some sort of spectrum there.
- 43:11What are your thoughts on people working with Kubernetes versus just directly with Docker itself or maybe even a pass, like almost a serverless type thing?
- 43:20If you spend a lot of time on the internet, right?
- 43:22We're all on the bleeding edge, right?
- 43:24Yeah, we absolutely are.
- 43:25Yeah.
- 43:26You read a lot of blog posts about Kubernetes and service meshes and serverless.
- 43:31And those are all fantastic and wonderful, right?
- 43:33But a lot of us out there are not, we're not the Googles or the Netflix or, you know, Disney Plus, right?
- 43:39You can see I watch a lot of movies.
- 43:40But anyways, you know, so you have small teams, small three, five person teams that really are writing the majority of the software out there, right?
- 43:49And there's nothing wrong with standing a VM up, putting a Docker engine in it and running your containers like that, right?
- 43:55That's the way we started.
- 43:56It's extremely powerful.
- 43:58You know, before I came to Docker, I had a consulting business, a custom dev.
- 44:02And that's how we ran all of our containers, right?
- 44:05We had a Docker engine installed on a VM, sometimes two VMs, right?
- 44:08That we managed as the orchestrator.
- 44:10And it ran fantastic.
- 44:12And we could scale, we had load, right?
- 44:14And to update it and to maintain it, all the things we've kind of been talking about today were super simple because the only prerequisite for the VM was to have the engine installed.
- 44:24Yeah.
- 44:24And to be honest, that's how my stuff is running now.
- 44:26I have a CI, CD stuff set up.
- 44:28So I do git pushed to a certain branch.
- 44:30My VMs automatically work with the load balancer.
- 44:33They automatically update themselves.
- 44:35They restart and like it's hands off, right?
- 44:38And, you know, the small, small set of us, like it works.
- 44:41Yeah.
- 44:42A hundred percent.
- 44:43A hundred percent.
- 44:43And serverless.
- 44:45And then also kind of the container passes that are out there.
- 44:48So ECS, ACI.
- 44:50So ECS is Elastic Container Service from Amazon.
- 44:54ACI is Azure Container Instances.
- 44:56And I don't know if Google has one.
- 44:58They probably do too.
- 44:59Yeah.
- 44:59Love you, Google.
- 45:00But yeah.
- 45:02Anyways, you know, it's being able to take your container and just run it in the cloud and worry about the container running and what it needs to do and how it needs to run, right?
- 45:09And ECS will take care of the rest underneath the covers.
- 45:13That's a fantastic option.
- 45:15I mean, it's kind of, you know, it's like those progressions, right?
- 45:18If you're doing a single VM with the Docker engine or two of them, a couple of them, and that becomes painful when you need to scale, really look at ECS or ACI, right?
- 45:26Because that will help you scale a lot easier.
- 45:28And you don't need to be a Kubernetes expert.
- 45:30And then if you do, then go to Kubernetes.
- 45:32But I always tell people, and Swarm is a great option too.
- 45:35Swarm is an incredible orchestrator.
- 45:37It works.
- 45:38How does that compare to Kubernetes?
- 45:40You know, I hear Docker Compose.
- 45:42I hear Swarm.
- 45:42I hear Kubernetes.
- 45:43I'm not sure when I should be thinking about which.
- 45:46So Compose is fantastic for local development.
- 45:48I would use it primarily there.
- 45:50You can use Compose to deploy and production.
- 45:52Would I use Compose if I had only a single container I wanted to run?
- 45:57But maybe it had a complicated layering, potentially?
- 46:00Yeah.
- 46:00So Compose works great there too.
- 46:02Even if you're running one container and all the command line switches and flags and environment variables and secrets, all those type of things, like put them all in your Compose file.
- 46:11So one, you don't have to remember all of them.
- 46:14And two, you don't write bash scripts to just run the Docker command, right?
- 46:19Yeah, you plug them all in just like that.
- 46:21You can see you're passing ports, volumes, all those type of things, right?
- 46:25You know, and I tell people start, think about Swarm, right?
- 46:27If you're doing one instance, don't jump to, like have really good reasons to jump into Kubernetes.
- 46:32It's super powerful.
- 46:34It's a great tool.
- 46:35It really is, but it comes with a ton of complexity, right?
- 46:38So if you don't need to go.
- 46:39Well, there's, like I said before, there's a difference between I want to run this on Kubernetes and I want to have my own Kubernetes cluster for which I'm the admin.
- 46:46Right.
- 46:46Right.
- 46:46Yeah.
- 46:47And don't get stuck in.
- 46:48Also another advice.
- 46:49And some engineers, you're like, don't get focused on developing for your resume, right?
- 46:53A lot of times, oh, we got to get in Kubernetes.
- 46:55I want to have Kubernetes.
- 46:55I've done all this, right?
- 46:56And yeah, you know, you want to learn new technology and stay cutting edge.
- 47:00But that's a tough one.
- 47:02That's a tough one to go to.
- 47:03Yeah.
- 47:04You can get very far with single engines, with Compose, and then with Swarm.
- 47:09And Swarm is a great orchestrator.
- 47:10It's built into the engine.
- 47:12It moved to the enterprise with Mirantis when they bought the Docker Enterprise business.
- 47:17So they maintain it.
- 47:18We got out of Docker proper.
- 47:19It's gotten out of the orchestration business.
- 47:21But it's a fantastic orchestrator.
- 47:23It just works.
- 47:24A prior life at Docker, I ran all the customer success technology.
- 47:27So our knowledge base, our search engine, our training tools and everything.
- 47:31And we ran on Compose.
- 47:32Compose and Swarm.
- 47:34All on Swarm.
- 47:35Five, nine uptime.
- 47:36Never touched it.
- 47:37Didn't have a DevOps team, right?
- 47:38It just, it really works.
- 47:39When you need things like sidecars and more complex networking and the more complex data storage,
- 47:46volumes, those type of things, that's where Kubernetes really shines.
- 47:50But other than that, Swarm is fantastic and single engines will get you very far.
- 47:55And then, like you said, I would go to EKS or something like that first, right?
- 47:59Have a Kubernetes cluster and manage at the level that you need to manage at and nothing lower,
- 48:03right?
- 48:04Until you have to.
- 48:05Makes sense.
- 48:05Chris McDonough, creator of the creators of Pyramid.
- 48:08Framework out there is in the live stream.
- 48:10It says, Compose kind of fills the same space as Buildout did in Python land for managing one
- 48:14or multiple containers locally.
- 48:15Yeah, awesome.
- 48:16Hello, Chris.
- 48:17Thanks for being here.
- 48:17Hey, Chris.
- 48:18Yeah, very cool.
- 48:18So the last thing that I want to touch on, the last topic I think we have time to talk
- 48:23about is the future.
- 48:24Where are things going with Docker, right?
- 48:27Like we've seen this move to focusing more on, you said, shift the left, more on the developer
- 48:31tools and whatnot.
- 48:32I'm glad you brought it to roadmap.
- 48:33Thank you.
- 48:34My bosses will be happy.
- 48:35My masters.
- 48:38Anyways, love you, Matt.
- 48:40So GitHub out there for forward slash Docker forward slash roadmap.
- 48:45That is our public roadmap.
- 48:47That is our roadmap, right?
- 48:48We work on that roadmap.
- 48:49We're actually coming out with a blog post with a feature.
- 48:51And that was spawned, came out of the roadmap, right?
- 48:54It was an idea from the community.
- 48:56It's integrating in with different terminals with Docker desktop.
- 48:59And that came out of the community.
- 49:01And people said, hey, I run iTerm on my Mac.
- 49:05And so does 99% of the other developers on Mac.
- 49:08We want that integrated, our integrated desktop.
- 49:11And so the upticks were really great.
- 49:13Anyways, we implemented it.
- 49:14So you'll see Ben, if you're looking at the screen on the right, Ben is the best PM I've
- 49:20ever worked with.
- 49:21Seriously, he's fantastic.
- 49:22But he is in there constantly.
- 49:23Yeah.
- 49:24So we look at this roadmap.
- 49:25We follow this roadmap.
- 49:26We build off of this roadmap.
- 49:28We don't have a secret shadow internal roadmap, right?
- 49:30And we say, hey, yeah.
- 49:32You've got different channels for like Windows and Microsoft and the engine and all that stuff,
- 49:36right?
- 49:36Yep.
- 49:37And so go read through there.
- 49:39Put in an issue if you have one.
- 49:41If you don't find it, it's where you can interact, add comments, those type of things.
- 49:44We do use that constantly.
- 49:46You know, I don't.
- 49:47So we have DockerCon coming up.
- 49:49So I don't want to give any secrets away.
- 49:50But yeah, we have, I would say, look for us in this year, the past year, we really kind
- 49:55of solidified the business, right?
- 49:56Really did a lot of things that Docker didn't do early in its early days, right?
- 50:02As a business wise, you know, we're shifting around a lot, but focus back on Hub and say,
- 50:06hey, you know, let's tighten up Hub.
- 50:08This is a place where a massive amount of developers come for value.
- 50:11So we tightened it up, put in good features like audit logging and more team features and
- 50:16fixed our plans and seats and how the pricing and how that works.
- 50:20And then started moving towards developer tools.
- 50:22So integrating it with ECS, ACI into the public clouds.
- 50:26You'll see a lot more of that coming.
- 50:28See a lot more tools around local development, container first development, a lot of sharing.
- 50:33So it'd be interesting to say, I'm working on a feature.
- 50:36I have a branch and I want to share that with you, Michael.
- 50:39Hey, you know, take a look at this real quick.
- 50:40And now you're in that same scenario, right?
- 50:42I have to check out your branch.
- 50:43If I'm doing everything on my machine, do I have all the versions correct?
- 50:46Do I have everything right?
- 50:47Well, what if you could just wrap that all up a container and I just share it with you?
- 50:50And you fire that container up and you're in a dev environment and it not just running
- 50:54the container, but able to see my code and everything and the app running inside the container and
- 50:59interact with it, right?
- 51:00Yeah, that's cool.
- 51:00That's powerful.
- 51:01That sounds a little bit like the VS Code feature where they have that's like launch this in
- 51:06code off of GitHub.
- 51:07Yep.
- 51:07And it just like sets up that remote environment.
- 51:09Exactly.
- 51:10Exactly.
- 51:11Yep.
- 51:11Launch, launch this for me.
- 51:13And also too, I can notify you, right?
- 51:15So you get in a little desktop notify.
- 51:17Hey, you got something shared with you and you launch this in VS Code and it brings it all
- 51:21in for you.
- 51:22Yeah, cool.
- 51:22And to your earlier point, you go, oh, if you didn't know you're running containers, you
- 51:26might not know it.
- 51:27Right.
- 51:27It's like, oh, I just got this PR shared with me and I want to check it out.
- 51:31Right.
- 51:31And it's just the run button and it's good.
- 51:33I push the run button.
- 51:34Yeah.
- 51:34Yeah.
- 51:35Awesome.
- 51:35A lot of stuff coming around that.
- 51:36A lot of more features in for teams and sharing features coming in Hub.
- 51:40We have scanning and the security scanning in there now.
- 51:42Yeah.
- 51:43A lot of interesting.
- 51:43One thing that GitHub added was notifications of security CVEs and whatnot.
- 51:50Like periodically I'll log in and I did this class that interacted in a very minor way
- 51:54with an Electron JS app.
- 51:56And it's always like your repository has this critical vulnerability because some random
- 52:01version in a package lock dot JSON is, you know, like, so for me, I'm like, I don't really
- 52:07need that, but I'll go ahead and just accept it because I just need it to be quiet to me.
- 52:11But in general, those features are super useful when those come up for your actual code.
- 52:15Anything like that you guys are thinking about?
- 52:17So we partnered with Snyk, which is a dev security scanning company, security company.
- 52:23I shouldn't say just scanning because they do a bunch of stuff.
- 52:25But now you have Docker space scan.
- 52:27So you can scan your images locally, get reports, see high, low severity.
- 52:31Yeah.
- 52:31And then that'll run in Hub.
- 52:33So when you push into Hub, your images will be scanned if you have it turned on.
- 52:37And so you have a central place where you can see all those.
- 52:39And then you can use Snyk to remediate them and those types of stuff.
- 52:43And Snyk has really good tools.
- 52:44Right.
- 52:45Because maybe you could have scanned locally, push your stuff to production.
- 52:49Right.
- 52:49And then you haven't touched it for three weeks.
- 52:51Right.
- 52:51But in the meantime, something's come out you need to take action on.
- 52:54Right.
- 52:54And so having it on the Hub, giving you notifications is constantly running.
- 52:58Right.
- 52:59Exactly.
- 52:59Exactly.
- 53:00Yeah.
- 53:00Being able to get notified of your base images.
- 53:02Right.
- 53:03So if you run in the node or the Python base image.
- 53:06Right.
- 53:07When that changes underneath you.
- 53:09Right.
- 53:09And there's security vulnerabilities introduced.
- 53:11Do you want to know?
- 53:11Right.
- 53:12Should I go to the next version or not?
- 53:14And then I think, too, to your earlier point of, you know, it's like I'm not a security professional.
- 53:18Right.
- 53:19So I see these reports and I do a scan and I go, oh, heck, you know, 300, you know, high
- 53:24severity vulnerabilities.
- 53:25Right.
- 53:25What do I do?
- 53:25And I think what we're trying to do is say, hey, here's how you remediate that.
- 53:29Right.
- 53:29You're on version 3.2.
- 53:31If you bump up to 3.3, it fixes these.
- 53:34So you should do that.
- 53:35Right.
- 53:35A little minor version upgrade or major upgrade takes you to instead of 300.
- 53:40Now you have 20 vulnerabilities.
- 53:41Right.
- 53:42And they're all medium.
- 53:43So.
- 53:43Yeah.
- 53:44You know, I think we need that as engineers to be able to get our job done quicker writing
- 53:47code.
- 53:47You know, it's a primary function.
- 53:49Right.
- 53:49So I got a bunch of these vulnerabilities.
- 53:50And to your point, you kind of like just, yes, just clearly these red X is off of here.
- 53:54Right.
- 53:55We might not know exactly what's going on.
- 53:56So really trying to help you remediate those vulnerabilities, but also understand why and
- 54:00what you're doing.
- 54:01Right.
- 54:01Yeah.
- 54:01That sounds really valuable.
- 54:02We got it for our code.
- 54:04We should have it for basically our infrastructure.
- 54:05Comment from the live stream.
- 54:07Could Docker potentially be able to share really big files across the globe, allowing others to recode
- 54:12easily?
- 54:13How would this work?
- 54:14Honestly, I don't know.
- 54:15I mean, it certainly will allow you to share files as images and it will definitely allow
- 54:19you to have environments set up like data science environments that could analyze those.
- 54:23But what are your thoughts?
- 54:25I think we could do some of that now.
- 54:26So I'm through hub being able to just Docker push and Docker pull is very powerful.
- 54:30Right.
- 54:31You can get a whole disk image, let's say.
- 54:33Right.
- 54:33Right.
- 54:33Because instead of getting just the Docker file, you got to build, you get the result, which
- 54:36could have had files copied in locally and all set up in the file system internally.
- 54:40Right.
- 54:40Yeah.
- 54:40Yeah.
- 54:41Yeah.
- 54:41So two ways to share with just the Docker file and say, hey, build this yourself or I've
- 54:45built it.
- 54:46Here you go.
- 54:46Right.
- 54:47Yeah.
- 54:48I would love to hear, you know, reach out to me on Twitter or something.
- 54:51Right.
- 54:51And let me know.
- 54:52I'd love to hear more of what you're trying to do.
- 54:53And because that sounds interesting.
- 54:54Right.
- 54:55Yeah.
- 54:55Bandwidth is interesting too around the world.
- 54:57Right.
- 54:58So, you know, I sit here in Austin where, you know, high speed internet.
- 55:01Well, really the rest of the world doesn't have that.
- 55:03Right.
- 55:04So low bandwidth.
- 55:05And, you know, of course I got a screaming desktop laptop.
- 55:08Right.
- 55:08That I use in fast and not, you know, the whole world doesn't have those advantages.
- 55:13So, you know, and if I'm pulling down a Mongo, some image, right.
- 55:16And I'm picking on Mongo all the time, but you know, if it's, if it's over a gig, that's,
- 55:20that's big, right.
- 55:20That it'll take a while on some network.
- 55:22So yeah.
- 55:23Yeah.
- 55:23All the video and video courses and audio processing and file exchange.
- 55:28I've had to buy unlimited data from Comcast because I was going over my 1.2 terabyte per
- 55:34month data caps every month.
- 55:36That was ridiculous.
- 55:36Yeah.
- 55:37Yeah.
- 55:37So a lot, a lot of data these days.
- 55:38All right.
- 55:39Well, you know, fantastic stuff you guys have coming up there.
- 55:41I guess maybe we should probably wrap it up just for the sake of time, but yeah, I guess
- 55:45we'll, we'll hit the two final questions I always ask.
- 55:49First of all, notable PyPI package.
- 55:51This is like something interesting that you ran across.
- 55:54Maybe you want to just share people that find useful, some Python library.
- 55:57I love testing.
- 55:58So test containers.python.
- 56:00That's a little inside joke that no one on here really knows, but I have, I have developer
- 56:04friends.
- 56:04So I will, one of my favorite things to argue against is testing just as a thought experiment,
- 56:09but it's, it's really fun.
- 56:10Right.
- 56:10But anyways, but don't listen to me.
- 56:13Testing is super important.
- 56:14Right.
- 56:14And being able to test in containers and pick off these prebuilt containers and use right
- 56:19in your, in your app, right in your code is super powerful, extremely powerful.
- 56:23So definitely interested in test containers.
- 56:25Yeah.
- 56:25It's super cool.
- 56:25It lets you basically create a with block that says with my SQL container as my SQL or with
- 56:31my MongoDB and DB container as that.
- 56:33And it just fires up a Docker container.
- 56:35You do your tests within that thing and maybe use a high test fixture to preload the test
- 56:41data, then run your code against it.
- 56:42So instead of mocking out the database and mocking out Redis, you just run a test Redis
- 56:47and then throw it away, which I think that's fantastic.
- 56:49It's like hybrid between integration tests and unit tests, isolation type stuff.
- 56:54It goes back to our earlier conversations around reproducibility, right?
- 56:57Yeah.
- 56:58Having same environments are very important, right?
- 57:00Yeah, absolutely.
- 57:00And then final question, if you're going to write some code, what editor do you use these
- 57:04days?
- 57:04If you would have asked me that about two years ago, it would have been Sublime.
- 57:07Been in a plain text editor, you know, back and forth, alt tabbing and back and forth
- 57:11between my terminal.
- 57:12But now I've fallen in love with VS Code.
- 57:14Yeah.
- 57:14It's extremely powerful.
- 57:15So I feel like Sublime, like so many of the people who love Sublime have just naturally
- 57:19moved to VS Code.
- 57:21I mean, Sublime was really cool.
- 57:22It just had all these like weird community stuff.
- 57:24Like there was Sublime and then Sublime 3 and there was like permanently in beta and like,
- 57:28are these getting updated?
- 57:29Which one is like the real thing?
- 57:30It's just, it was always kind of a little unclear where it was going.
- 57:34And then, you know, VS Code came along with a similar model and just said, well, why don't
- 57:38we put a hundred people just like constantly adding features to this?
- 57:40Yeah, exactly.
- 57:41I don't know what the number is, but it's high.
- 57:42Yeah.
- 57:43And it's interesting you say that because I was a long time Sublime.
- 57:46I bought it, right?
- 57:47And purchased it forever.
- 57:48And yeah, it was like two or three and I have a theme over here, but it doesn't work in three.
- 57:52And how do you get it?
- 57:53It was just weird.
- 57:54And then VS Code just kind of snuck in and I said, yeah, I'm going to use it.
- 57:57I'm going to use it.
- 57:57And now I keep just using, I use it as a text editor back then, right?
- 58:01And now I just keep using more and more features, plugins.
- 58:03I mean, the ecosystem around that is so powerful.
- 58:06There's neat stuff.
- 58:07And especially there's a lot of neat Docker things going on in it.
- 58:09Yeah.
- 58:09I'm going to run my VS Code in a Docker and then run, you know, dev containers.
- 58:13And it'll be like Inception.
- 58:16It'll be Docker.
- 58:16Yeah, a little Inception.
- 58:17Docker VS Code all the way down.
- 58:18All right.
- 58:19You got a moment for a couple more audience questions before we wrap it up?
- 58:22Absolutely.
- 58:23You know me.
- 58:24I'll chat away for days, but I know your audience might get bored.
- 58:27All right.
- 58:28So Brian Sands out there.
- 58:30Hey, Brian says, do you know of any good examples using Docker Compose with Postgres for persistent
- 58:35local storage?
- 58:36I have a hard time finding up-to-date working info to do this properly.
- 58:39Yeah.
- 58:39Check out Awesome Compose.
- 58:41So it's a GitHub repo.
- 58:43Docker owns it.
- 58:44So Awesome-Compose.
- 58:46I can't remember if it was under the Docker organization or not, but there's a ton of different
- 58:51kind of configurations with different stacks.
- 58:53That's super interesting.
- 58:54I had no idea about this.
- 58:55Good question, Brian.
- 58:56Yeah.
- 58:56Thank you, Brian.
- 58:57I paid him.
- 58:58I'll send you that.
- 58:59I'll Venmo you here in a minute.
- 59:00No, but yeah, check that out.
- 59:01If you can't get your specific stack, you're going to get something very close, right?
- 59:05So there's Flask in there.
- 59:07There's Nginx like Flask and Postgres, different kind of three-tiered stacks.
- 59:13And then within that, you'll have Docker files.
- 59:15And then you'll have a Compose file to kind of bring it all together.
- 59:18And you should get some really great examples in there.
- 59:20If not, please do hit me up on Twitter and I'll get you pointed in the right direction
- 59:23for sure.
- 59:24Yeah, very cool.
- 59:25Awesome.
- 59:25And then Tino asks, what is the current state of Windows-based Docker containers?
- 59:30I know there's Nano Server.
- 59:31I got to tread lightly on this one.
- 59:32You know, I was super excited when Microsoft, when we started supporting it for Windows containers.
- 59:37You know, the focus has been not as much.
- 59:40The amount of people actually using Windows containers is very, very small compared to Unix-based
- 59:46containers.
- 59:47So, you know, just because of that, the focus has not been on that.
- 59:50There's still a thing.
- 59:51They're still being developed on.
- 59:53They're just not as prominent in the industry for whatever reason, especially with .NET.
- 59:56Well, you know where I would say they probably, as is standard with Microsoft these days,
- 1:00:01their focus seems to be if it runs on Azure, we love it, right?
- 1:00:06This is where we will sacrifice many, many of the things so that it will run on Azure.
- 1:00:11And a lot of that, I believe, is check this thing in Windows and like say Visual Studio
- 1:00:15Code so I can push deploy to run on Docker on Azure.
- 1:00:18Yep.
- 1:00:19I think that's probably where a lot of it is.
- 1:00:21Yeah.
- 1:00:21And WSL2 is huge, right?
- 1:00:24So talking to the Microsoft folks, right?
- 1:00:25They want to be the place where you come.
- 1:00:28The Windows platform is the place you come for developing, right?
- 1:00:31So whether you're a Windows developer or Linux developer, right?
- 1:00:33You're using VS Code.
- 1:00:34You're running on Windows.
- 1:00:35You're using WSL2 for Unix development or you're using Windows for Windows development.
- 1:00:40That's their thought, right?
- 1:00:41So the underlying platforms kind of change and with containers, they can do some of that.
- 1:00:45So they're focusing a lot on WSL2, which is super powerful.
- 1:00:49Right.
- 1:00:49Which really just means make WSL2 good so that it runs on Ubuntu or something like that,
- 1:00:53right?
- 1:00:53I mean, we just leverage that Ubuntu Docker support, I suspect.
- 1:00:56Yeah.
- 1:00:56While we're talking platforms, I've been doing basically nothing but M1 stuff these
- 1:01:01days.
- 1:01:02Since mid-December, I thought I would, you know, I got my Mac mini M1 and I thought I'd be juggling
- 1:01:07this would work here, that would work there.
- 1:01:08And I just literally have just turned off my laptop and just do this.
- 1:01:12And I love it.
- 1:01:12What's the story of Docker and M1?
- 1:01:14Yeah.
- 1:01:15So we love Apple.
- 1:01:16It was nice to see our little, I don't know if you saw an Apple's keynote, you know,
- 1:01:20where you saw the Docker desktop on there, which was super cool.
- 1:01:22We're getting very, very close to shipping, you know, a release.
- 1:01:26Okay.
- 1:01:27A GA.
- 1:01:27Yeah.
- 1:01:28I mean, really close.
- 1:01:29I don't want to give a date or anything, but really close.
- 1:01:32But you know, tomorrow?
- 1:01:32Yeah.
- 1:01:33Tomorrow will be okay.
- 1:01:33We'll do that.
- 1:01:34I'll take it.
- 1:01:35Very, very close.
- 1:01:35They're working on it.
- 1:01:36It's one of our primary feature sets to finish, to get done, right?
- 1:01:40And again, it came from the community.
- 1:01:42It was our number one issue, right?
- 1:01:44When the M1s dropped, you know, I think everybody jumped into our GitHub issue and said, we need
- 1:01:48support.
- 1:01:48I think this whole M1 stuff has come out way stronger than I expected.
- 1:01:52I thought, oh, that'll be kind of a neat, who knows what they're doing.
- 1:01:54But like, as it came out, it's like, wow, this is really transformative in some ways.
- 1:01:57Yeah.
- 1:01:57You can get the tech preview.
- 1:01:59It's pretty stable right now.
- 1:02:00You know, it's just going to be on probably, you know, one-off little issues on your environment,
- 1:02:05how you run containers and what exactly, what container, you know, because they got to be
- 1:02:10compiled for the different lines.
- 1:02:11It's got to basically be an ARM image.
- 1:02:12Yeah.
- 1:02:13Yeah.
- 1:02:13And sometimes you run ARM, but then, you know, Mongo doesn't have an ARM version yet.
- 1:02:17So you're running an emulation and, you know, so there's those type of things.
- 1:02:20We're very, very close to releasing GA.
- 1:02:23Stay tuned.
- 1:02:24Next couple of weeks, I would say.
- 1:02:25Yeah.
- 1:02:25Fantastic.
- 1:02:25And shout out to the MongoDB people.
- 1:02:27Where's your M1 version?
- 1:02:27Come on.
- 1:02:28All right.
- 1:02:28Final question.
- 1:02:29We're going to wrap it up.
- 1:02:30Ricardo says, networking on Docker feels like it's easier with LXC, one of the other container
- 1:02:36styles.
- 1:02:37Am I doing something wrong?
- 1:02:39I'm interested in giving a container-in-zone IP address.
- 1:02:41Peter, this is you.
- 1:02:42I have no idea.
- 1:02:42Yeah.
- 1:02:43Ricardo, I thought I was going to get out of here without any networking questions.
- 1:02:46But Ricardo, you are not alone.
- 1:02:48Networking in containers is difficult, right?
- 1:02:50You got to deal with different networking technologies, even locally.
- 1:02:54So yeah, it's not easy.
- 1:02:56Is this easier in something like Swarm or Kubernetes or something else that maybe controls them more?
- 1:03:00No, it gets even more complicated.
- 1:03:02Okay.
- 1:03:02Yeah.
- 1:03:04Once you step outside of, if you have cloud-native apps, right?
- 1:03:07And I'm not a huge fan of that term because what the heck does that mean?
- 1:03:11But if you don't-
- 1:03:12I want to permanently pay to run my app forever.
- 1:03:14Thank you.
- 1:03:15Yeah, exactly.
- 1:03:17But yeah.
- 1:03:18So if you're in microservices, you're using configuration outside of your app to control
- 1:03:23your app, right?
- 1:03:23Is the best.
- 1:03:24But I see a lot of legacy apps.
- 1:03:25I'll do legacy in double quotes also, right?
- 1:03:28Because just meaning not more microservice type apps, right?
- 1:03:32And so you're trying to run those apps inside of containers and they have unique networking
- 1:03:36needs, unique volume needs, right?
- 1:03:38They're still writing to disk and reading from disk and you can't control that without changing
- 1:03:42code or they have IP addresses or subnets kind of hardwired in, right?
- 1:03:47And you can't do a lot of that.
- 1:03:48So you got to configure your networking around your app with inside a container and that's where
- 1:03:52the complexity comes in.
- 1:03:54So in this scenario, giving your container its own IP address, it's a little bit against
- 1:04:00best practices, right?
- 1:04:02So containers should be ephemeral.
- 1:04:03They should go away, right?
- 1:04:05You should think of them.
- 1:04:05And I got to get a better analogy.
- 1:04:07My apologies to anybody if this offends you, but we used to think of our VMs as pets, right?
- 1:04:12And we take care of them, keep them up and love them and hope they live forever, right?
- 1:04:17Configure them.
- 1:04:18And then now you have containers, which are more like, let's say, I used to say cattle, but
- 1:04:22I'm more that offends people.
- 1:04:24So let's say consumable foods, right?
- 1:04:26You know, like you get-
- 1:04:28Fungible elements.
- 1:04:29Yeah.
- 1:04:29So you get more like a cake, right?
- 1:04:32If I get cake in my house, I'm eating that, right?
- 1:04:34And it's gone.
- 1:04:35And then if I want new cake, I got to put new cake, right?
- 1:04:37So same with containers.
- 1:04:37It goes bad.
- 1:04:38You don't try to rehabilitate it.
- 1:04:39You just get new cake.
- 1:04:40Right, right.
- 1:04:40Yeah.
- 1:04:41But you don't eat half the cake and then bake, you know, put another bake the half.
- 1:04:44This analogy is going poor, but-
- 1:04:46Speak for yourself.
- 1:04:47We refill our cake.
- 1:04:48We don't ever want to go down to zero cake.
- 1:04:50Right.
- 1:04:51But that's the idea.
- 1:04:51So if you're assigning an IP to a container, that container goes away, right?
- 1:04:55And the idea is if I'm orchestrating that I have multiple containers all running, they
- 1:04:58shouldn't have the same IP, right?
- 1:05:00If one goes away, one comes back up, you don't want to, you know, so those are the type of
- 1:05:04things you're getting into.
- 1:05:05And Ricardo, you're probably shaking your head going, yes, but, but, but, but, but, and I
- 1:05:09totally-
- 1:05:10But I need it.
- 1:05:10Yeah.
- 1:05:11I totally understand.
- 1:05:11And you can do it, but it's just a little more complex.
- 1:05:14Yeah.
- 1:05:14A little hard to answer on, you know, with a couple of minutes here, but-
- 1:05:17Yeah.
- 1:05:17I hit you up on Twitter.
- 1:05:18All right.
- 1:05:19So thank you so much for being here, Peter.
- 1:05:21It's super interesting.
- 1:05:21Final call to action.
- 1:05:22People want to get started maybe making Docker more of their life.
- 1:05:25What do they do?
- 1:05:26Definitely go hit me up on Twitter.
- 1:05:27Say hello.
- 1:05:28Love to talk to folks.
- 1:05:29Join our community.
- 1:05:31Jump into community Slack.
- 1:05:32If you're, questions like that, Ricardo, the community's there.
- 1:05:35They'll be very, very helpful.
- 1:05:36A lot of our engineers, our developers are in there.
- 1:05:39All of our PMs are in there.
- 1:05:40Ton of captains are in there.
- 1:05:41Docker captains are in there.
- 1:05:42And they're very, very helpful.
- 1:05:44So this is a great way to get plugged into the community.
- 1:05:46And then the last thing is DockerCon is coming up here in the May.
- 1:05:49Sign up for DockerCon.
- 1:05:50It's going to be an online live event.
- 1:05:52Last year, we had 80,000 registrants, a really, really big show.
- 1:05:56So you're not going to want to miss a great content coming.
- 1:05:59You get to see more of my smiley face.
- 1:06:01And then CFP is still open.
- 1:06:03We're getting ready to close it on the 15th.
- 1:06:05So if you ever thought about giving a talk, right?
- 1:06:07Please submit.
- 1:06:08If you're a first-time speaker, don't let that deter you, right?
- 1:06:11DockerCon is traditionally a pretty big conference and well-attended, right?
- 1:06:15And it might, you know, first-time speakers might not submit.
- 1:06:18Please do.
- 1:06:18We do read all of them.
- 1:06:20And we do take an account, you know, what you've done in the past.
- 1:06:22But we also do look for new speakers, right?
- 1:06:24A hundred percent.
- 1:06:25Don't let that deter you, for sure.
- 1:06:27All right.
- 1:06:27Fantastic.
- 1:06:28Well, thanks for taking the time, Peter.
- 1:06:29It's been great to chat with you about this.
- 1:06:30Yeah.
- 1:06:31Hey, thanks for having me on.
- 1:06:32Really enjoyed it.
- 1:06:33You bet.
- 1:06:33See you later.
- 1:06:33All right, bye.
- 1:06:34This has been another episode of Talk Python To Me.
- 1:06:38Our guest on this episode was Peter McKee, and it's been brought to you by Datadog and
- 1:06:42us over at Talk Python Training.
- 1:06:44Datadog gives you visibility into the whole system running your code.
- 1:06:48Visit talkpython.fm/datadog and see what you've been missing.
- 1:06:52Don't throw in a free t-shirt with your free trial.
- 1:06:54Want to level up your Python?
- 1:06:56We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:07:00Our content ranges from true beginners to deeply advanced topics like this.
- 1:07:04Like memory and async.
- 1:07:05And best of all, there's not a subscription in sight.
- 1:07:08Check it out for yourself at training.talkpython.fm.
- 1:07:11Be sure to subscribe to the show.
- 1:07:13Open your favorite podcast app and search for Python.
- 1:07:15We should be right at the top.
- 1:07:17You can also find the iTunes feed at /itunes, the Google Play feed at /play, and the
- 1:07:22direct RSS feed at /rss on talkpython.fm.
- 1:07:27We're live streaming most of our recordings these days.
- 1:07:29If you want to be part of the show and have your comments featured on the air, be sure to
- 1:07:34subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:07:37This is your host, Michael Kennedy.
- 1:07:39Thanks so much for listening.
- 1:07:40I really appreciate it.
- 1:07:42Now get out there and write some Python code.
- 1:07:43Bye.
- 1:07:44Bye.
- 1:07:45Bye.
- 1:07:45Bye.
- 1:07:45Bye.
- 1:07:46Bye.
- 1:07:47Bye.
- 1:07:48Bye.
- 1:07:49Bye.
- 1:07:50Bye.
- 1:07:51Bye.
- 1:07:52Bye.
- 1:07:53Bye.
- 1:07:54Bye.
- 1:07:55Bye.
- 1:07:56Bye.
- 1:07:57Bye.
- 1:07:57Bye.
- 1:07:57Bye.
- 1:07:57Bye.
- 1:07:57Bye.
- 1:07:57Bye.
- 1:07:57Bye.
- 1:07:57Bye.
- 1:07:58Bye.
- 1:07:59Bye.
- 1:07:59Bye.
- 1:08:00you
- 1:08:01you
- 1:08:01Thank you.
- 1:08:03Thank you.