Learn Docker in 12 Minutes 🐳
Why Stack Overflow recommends it
Stack Overflow users link it as a quick starting point for Docker newcomers, and many beginners cite it as the tutorial they were following when their setup went wrong.
Recommended by 4 people across 3 different months, 2017 to 2020.
What it is
A 12-minute beginner tutorial by Jake Wright covering what Docker is, how it differs from virtual machines, and the core ideas of Dockerfiles, images, containers and Docker Hub. It walks through writing a Dockerfile for a simple PHP/Apache page, building an image, running a container, mounting volumes and keeping one process per container.
What people said
Recommends Aayush Pathak · 2017-07 · Stack Overflow · on “Docker container doesn't bind with host”
@J.Mishra Don't think that full path is needed. In this tutorial video the guy just uses directories. [this video]
Recommends John Hanley · 2019-10 · Stack Overflow · on “How to add Python libraries to Docker image”
There are a number of good videos on YouTube that will help you with Docker basics. Try this one, there are dozens more: [this video]
Recommends eMad · 2019-10 · Stack Overflow · on “How to correctly mount code in docker for development”
I don't know flask so I can't fully help. Revise your knowledge quickly 1. [this video] & 2. [LINK] and see if you can solve this
Recommends Nat · 2020-07 · Stack Overflow · on “Docker-Compose File”
Docker compose is built for having multiple apps, with a Dockerfile it is very powerful. To put it simply you can split a docker-compose file into things called 'services' and they act as different, separate apps/microservices, so say I wanted a nodejs app and a database within the same docker-compose file and Dockerfile: Dockerfile: FROM node:7.7.2-alpine WORKDIR /usr/app COPY package.json . RUN npm install --quiet COPY . . Docker-compose: version: '3.1' services: mongo: image: mongo name: database restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: example web: build: . command: npm run dev volumes: - .:/usr/app/ - /usr/app/node_modules ports: - "3000:
Cites ob1 · 2017-07 · Stack Overflow · on “Do containers always require less resources or do they create additional overhead”
I have been learning about the Docker and its advantages. These advantages include, but are not limited to: Rapid Deployment Portability Security Isolation Version control Lightweight footprint with minimal overhead My questions: Will it always be less stressful on a host machine to run multiple applications such as Zeppelin, Hadoop, Flume, ect. in individual docker containers or would the application virtual machine be added on top of the container (docker creates overhead)? At some point does the number of containers running create an overhead that will cost more resources than it would to just run all of the tools directly off the host machine? Would it be better to run all of the apps in
Cites Will Marcouiller · 2018-05 · Stack Overflow · on “How can I solve 403:Forbidden whilst using a docker container?”
I'm new to Docker and currently following this tutorial: Learn Docker in 12 minutes [this video] I created the necessary files and I made it up to display "Hello World!" on localhost:80. Beyond that point, I tried to mount the container using the direct reference to my folder so I can update the index.php file to mimic the development evironment, and then I come with this error: [LINK] All I did is change the way the image is ran so I can update the content of the index.php file and see the changes reflect in the webpage when I hit F5. Currently using Docker for Windows on Windows 10 Pro Docker for Windows is running I followed every steps scrupulously so I don't get myself fooled and it didn't w
Cites Helmut K. · 2018-05 · Stack Overflow · on “Docker and localhost seem not to connect as should”
So Im new to Docker and wanted to start a docker container with a apache system on it that should just show one simple "hello world" php-file. I followed a youtube tutorial for that. Now I could set up the container and I could run the image, I also connected the port of the container with the port outside, but it seems like its not working. My [LINK] (<- I connected Port 80 to port 80 in the container) and nothing happened. Is it possible, that my firewall is killing the connection? Here is the dockerfile and my php file: PHP <? php echo "Hello World"; Dockerfile FROM php:7.0-apache COPY src/ /var/www/html EXPOSE 80 The tutorial is this one: [this video] Unfortunately my knowledge is so limited,