Learn Docker in 7 Easy Steps - Full Beginner's Tutorial

Fireship · 2.6M views · 2020 · 11:02

Open on YouTube

Cloud, DevOps & reliabilityTesting, debugging & developer toolsWeb developmenttutorial

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they were following when they hit errors running docker build, docker exec or docker ps, often comparing their output to the video's.

Recommended by 0 people across 0 different months, 2020 to 2021.

What it is

A short beginner tutorial from Fireship that explains what Docker is and walks through installing it, writing a Dockerfile, building an image, running a container, debugging, and using Docker Compose. The worked example dockerizes a Node.js app.

What people said

Cites Holly · 2020-11 · Stack Overflow · on “Docker didn't run all the command at Dockerfile”

I'm a beginner user for docker, and I followed this tutorial on Youtube [this video] I already make a dockerfile in my application folder. FROM node:13 WORKDIR / COPY package*.json ./ RUN npm install #ngelakuin run di shell (ini buat di shell) COPY . . #copy semua file di dalam directory ini ENV PORT=3000 #menyesuaikan dimana port aplikasi berjalan, port = 3000 EXPOSE 3000 #expose port public CMD ["npm", "start"] #ngelakuin run (cmd) The tutorial said, it was supposed to run 8 commands when we do docker build (until cmd command). But in my case only do 5 (until COPY . . ) This is what the terminal doing when docker build. [+] Building 12.7s (9/9) FINISHED => [internal] load .dockerignore 0.0s =>

Cites Pro Poop · 2021-07 · Stack Overflow · on “Docker does not build image”

I just got started with docker and was following fireship's [this video] tutorial, however I encountered a problem when I ran the docker build command. I was expecting a similar output as the video (timestamp) [this video] . Instead, I got the following: [LINK] Dockerfile FROM node:12 WORKDIR /app #maybe its this? There is no /app directory COPY package*.json ./ RUN npm install COPY . . ENV PORT=8080 EXPOSE 8080 CMD ["npm","start"] docker build command docker build -t <my docker id>/firstapp:1.1 . File tree D:/ Code/ testing/ Docker/ test1/ Notes Yes, I have a docker ID. The docker build command stopped at COPY . . , rather than finishing at CMD ["npm","start"] CWD (Windows): D:\Code\testing\Docker\te

Cites swiftyManagement101 · 2021-08 · Stack Overflow · on “How do I access docker from mac command line?”

I am following a tutorial to learn docker and in the video the person says to access docker from the command line and then run docker ps . I tried doing that through my mac terminal and got an error saying /bin/sh: docker: not found . Here is the code in my terminal: Last login: Tue Aug 17 11:42:10 on ttys000 docker exec -it 41287e54390daa5016ed1f778022d05ae984ed27f62344c542d0662aee4d2230 /bin/sh nila@Nilas-MacBook-Air ~ % docker exec -it 41287e54390daa5016ed1f778022d05ae984ed27f62344c542d0662aee4d2230 /bin/sh / # docker ps /bin/sh: docker: not found In the tutorial this is how it looks when you run docker ps : tutorial [LINK] Here is the link to the tutorial I am following: [this video]