-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,271 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,4 +149,7 @@ $RECYCLE.BIN/ | |
*.lnk | ||
|
||
# vscode tmp files | ||
.dccache | ||
.dccache | ||
|
||
# reference pdf's | ||
references/*.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,45 @@ | ||
# Udemy Course Docker Mastery: with Kubernetes+Swarm from a Docker Captain | ||
|
||
[![Lint Code Base](https://github.com/BretFisher/udemy-docker-mastery/actions/workflows/call-super-linter.yaml/badge.svg)](https://github.com/BretFisher/udemy-docker-mastery/actions/workflows/call-super-linter.yaml) | ||
|
||
> Build, test, deploy containers with the best mega-course on Docker, Kubernetes, Compose, Swarm and Registry using DevOps | ||
This repository is for use in my Udemy Courses "Docker Mastery" and "Swarm Mastery" | ||
|
||
NOTE: As of July 2020 the new default branch is `main`, so please update your clone if you're still on `master` branch. | ||
|
||
Get these courses for with my "cheapest on the internet" coupon links: | ||
|
||
[bretfisher.com/courses](https://www.bretfisher.com/courses) | ||
|
||
My other DevOps and Docker resources are at [bretfisher.com/docker](https://www.bretfisher.com/docker) | ||
> Build, test, and deploy containers with the best mega-course on Docker, Kubernetes, Compose, Swarm and Registry using a cloud native DevOps mindset | ||
This repository is for use in my Udemy Courses "[Docker Mastery](https://www.udemy.com/course/docker-mastery/?referralCode=1410924A733D33635CCB | ||
)" and "[Swarm Mastery](https://www.udemy.com/course/docker-swarm-mastery/?referralCode=4927D9CB156D4AE0228C)" | ||
|
||
- Get these courses with my "cheapest on the internet" coupon links: [bretfisher.com/courses](https://www.bretfisher.com/courses) | ||
- Get the [weekly newsletter](https://www.bretfisher.com/newsletter) on all the cloud native DevOps content I'm creating. | ||
|
||
## Course Sections | ||
|
||
1. Quick Start! | ||
1. [README](./intro/README.md) | ||
2. [Commands and Links](./references/S01%20Commands%20and%20Links.md) | ||
2. Course Introduction | ||
3. The Best Way to Setup Docker for Your OS | ||
4. Creating and Using Containers Like a Boss | ||
5. Container Images, Where To Find Them and How To Build Them | ||
6. Container Lifetime & Persistent Data: Volumes, Volumes, Volumes | ||
7. Making It Easier with Docker Compose: The Multi-Container Tool | ||
8. Swarm Intro and Creating a 3-Node Swarm Cluster | ||
9. Swarm Basic Features and How to Use Them In Your Workflow | ||
10. Swarm App Lifecycle | ||
11. Container Registries: Image Storage and Distribution | ||
12. Docker in Production | ||
13. The What and Why of Kubernetes | ||
14. Kubernetes Architecture and Install | ||
15. Your First Pods | ||
16. Inspecting Kubernetes Resources | ||
17. Exposing Kubernetes Ports | ||
18. Kubernetes Management Techniques | ||
19. Moving to Declarative Kubernetes YAML | ||
20. Your Next Steps and The Future of Kubernetes | ||
21. Automated CI Workflows | ||
22. GitHub Actions Workflow Examples | ||
23. Docker Security Good Defaults and Tools | ||
24. Docker 19.03 Release New Features | ||
25. DevOps and Docker Clips | ||
26. Dockerfiles and Docker Images in 2022 | ||
27. Dockerfile and Compose File Reviews | ||
28. Extra's, Common Questions, and Resources | ||
|
||
Feel free to create issues or PRs if you find a problem with examples in this repository! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Swarm Intro and Creating a 3-Node Swarm Cluster | ||
|
||
## Create Your First Service and Scale it Locally | ||
|
||
docker info | ||
|
||
docker swarm init | ||
|
||
docker node ls | ||
|
||
docker node --help | ||
|
||
docker swarm --help | ||
|
||
docker service --help | ||
|
||
docker service create alpine ping 8.8.8.8 | ||
|
||
docker service ls | ||
|
||
docker service ps frosty_newton | ||
|
||
docker container ls | ||
|
||
docker service update TAB COMPLETION --replicas 3 | ||
|
||
docker service ls | ||
|
||
docker service ps frosty_newton | ||
|
||
docker update --help | ||
|
||
docker service update --help | ||
|
||
docker container ls | ||
|
||
docker container rm -f frosty_newton.1.TAB COMPLETION | ||
|
||
docker service ls | ||
|
||
docker service ps frosty_newton | ||
|
||
docker service rm frosty_newton | ||
|
||
docker service ls | ||
|
||
docker container ls | ||
|
||
## Creating a 3-Node Swarm Cluster | ||
|
||
http://play-with-docker.com | ||
|
||
docker info | ||
|
||
docker-machine | ||
|
||
docker-machine create node1 | ||
|
||
docker-machine ssh node1 | ||
|
||
docker-machine env node1 | ||
|
||
docker info | ||
|
||
http://get.docker.com | ||
|
||
docker swarm init | ||
|
||
docker swarm init --advertise-addr TAB COMPLETION | ||
|
||
docker node ls | ||
|
||
docker node update --role manager node2 | ||
|
||
docker node ls | ||
|
||
docker swarm join-token manager | ||
|
||
docker node ls | ||
|
||
docker service create --replicas 3 alpine ping 8.8.8.8 | ||
|
||
docker service ls | ||
|
||
docker node ps | ||
|
||
docker node ps node2 | ||
|
||
docker service ps sleepy_brown | ||
|
||
## Scaling Out with Overlay Networking | ||
|
||
docker network create --driver overlay mydrupal | ||
|
||
docker network ls | ||
|
||
docker service create --name psql --netowrk mydrupal -e POSTGRES_PASSWORD=mypass postgres | ||
|
||
docker service ls | ||
|
||
docker service ps psql | ||
|
||
docker container logs psql TAB COMPLETION | ||
|
||
docker service create --name drupal --network mydrupal -p 80:80 drupal | ||
|
||
docker service ls | ||
|
||
watch docker service ls | ||
|
||
docker service ps drupal | ||
|
||
docker service inspect drupal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Quick Start! | ||
|
||
> Shell commands and reference links, per lecture | ||
## What is Docker? The Three Innovations | ||
|
||
- [Article of this lecture](https://github.com/BretFisher/udemy-docker-mastery/blob/main/intro/what-is-docker/what-is-docker.md) | ||
- [Kubernetes vs. Docker](https://www.bretfisher.com/kubernetes-vs-docker/) | ||
- [OCI Overview](https://opencontainers.org/about/overview/) | ||
|
||
## Quick Container Run | ||
|
||
- [Article of this lecture](https://github.com/BretFisher/udemy-docker-mastery/blob/main/intro/quick-container-run/quick-container-run.md) | ||
- [Play with Docker](https://labs.play-with-docker.com/) | ||
- [Docker Hub](https://hub.docker.com/) | ||
- [Docker Official Images](https://docs.docker.com/docker-hub/official_images/) | ||
- [Apache Official Image (httpd)](https://hub.docker.com/_/httpd) | ||
|
||
```shell | ||
docker version | ||
docker run -d -p 8800:80 httpd | ||
curl localhost:8800 | ||
docker ps | ||
docker run -d -p 8801:80 httpd | ||
``` | ||
|
||
## Why Docker? Why Now? | ||
|
||
- [Article of this lecture](https://github.com/BretFisher/udemy-docker-mastery/blob/main/intro/why-docker/why-docker.md) | ||
- [A Brief History of Containers](https://blog.aquasec.com/a-brief-history-of-containers-from-1970s-chroot-to-docker-2016) |
Oops, something went wrong.