Docker Tutorial for Beginners [FULL COURSE in 3 Hours]

TechWorld with Nana · 6.6M views · 2020 · 2:46:15

Open on YouTube

Cloud, DevOps & reliabilitySoftware practice, open source & careerscourse

Why Stack Overflow recommends it

Stack Overflow users link it as a beginner-friendly Docker course, both when recommending it to people struggling with the basics and when asking questions about its Mongo and Mongo Express demo project.

Recommended by 2 people across 2 different months, 2020 to 2024.

What it is

A near three-hour beginner course on Docker from TechWorld with Nana, mixing animated explanations with hands-on demos. It covers containers vs VMs, installation, core commands, Docker Compose, writing a Dockerfile, pushing to a private registry, volumes, and deploying a small Node and MongoDB demo app.

What people said

Recommends Shaqil Ismail · 2021-03 · Stack Overflow · on “Docker build command is throwing error in jenkins”

I was watching a video about kubernetes before on YouTube, I see a Docker video by the same channel, TechWorld by Nana, for Docker, this should help you understand better, [this video]

Recommends JJ Asghar · 2022-03 · Stack Overflow · on “run Kibana from Docker”

I strongly suggest you take a look at this video [this video] and learn the basics of `docker` from there you should be able to figure out your issues.

Cites user1592380 · 2020-11 · Stack Overflow · on “MongoNetworkError: failed to connect to server [mongodb:27017] on first connect”

[LINK] I'm taking a beginner docker course ( [this video] ), which I think is very well done. As part of the course an app is put together with a node server and js frontend, communicating with with docker containers for mongo db and mongo express for persistence. The node app can be found at [LINK] . containing: MongoClient.connect("mongodb://admin:password@mongodb:27017", function (err, client) { if (err) throw err; var db = client.db('user-account'); userObj['userid'] = 1; I have the 2 docker containers running on ubuntu 20.04 on a chromebook (screenshot). When I run: 11@penguin:~/techworld-js-docker-demo-app/app$ nodejs server.js app listening on port 3000! but when I open a browser to localh

Cites Sankalp Singh · 2022-03 · Stack Overflow · on “mongo-express is not trying to reconnect after first attempt”

I am trying to create two services mongo and mongo-express through docker-compose file. Let me explain the scenario - If I run those two containers separately in a same container using docker-run commands in terminal one by one they work fine. Commands which I ran in terminal -> For mongo docker run -d \ -p27017:27017 \ -e MONGO_INITDB_ROOT_USERNAME=admin \ -e MONGO_INITDB_ROOT_PASSWORD=password \ --network 6-mar-learning-docker-with-mongo-image \ --name mongodb \ mongo and for mongo-express docker run -d \ -p 8081:8081 \ -e ME_CONFIG_MONGODB_ADMINUSERNAME=admin \ -e ME_CONFIG_MONGODB_ADMINPASSWORD=password \ --network 6-mar-learning-docker-with-mongo-image \ --name mongo-express \ -e ME_CON

Cites AssaultCactus · 2023-10 · Stack Overflow · on “Mongo Express is listening, but Database and Admin Database aren't connected”

I'm following this tutorial [this video] on running the MongoDB and Mongo Express containers and linking them to my network. I ran this command for creating a network named 'mongo-network': docker network create mongo-network It worked and now docker network ls produces the following: docker network ls NETWORK ID NAME DRIVER SCOPE 211764b8aef0 bridge bridge local 926cb00b12c6 host host local f97555f47778 mongo-network bridge local 58a3bdaeb7a7 none null local I ran this command line for running the MongoDB container $ docker run-d \ -p 27017:27017 \ -e MONGO_INITDB_ROOT_USERNAME=admin \ -e MONGO_INITDB_ROOT_PASSWORD=password \ --name mongodb \ --net mongo-network \ mongo I ran the following comma

Cites Paul · 2024-04 · Stack Overflow · on “Mongodb connection failed while running with docker-compose”

This is my server.js file: let path = require('path'); let fs = require('fs'); let MongoClient = require('mongodb').MongoClient; let bodyParser = require('body-parser'); let app = express(); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.get('/', function (req, res) { res.sendFile(path.join(__dirname, "index.html")); }); app.get('/profile-picture', function (req, res) { let img = fs.readFileSync(path.join(__dirname, "images/profile-1.jpg")); res.writeHead(200, {'Content-Type': 'image/jpg' }); res.end(img, 'binary'); }); let mongoUrlLocal = "mongodb://admin:password@localhost:27017"; let mongoUrlDocker = "mongodb://admin:password@mongodb"; let mongoClientO