Docker Crash Course #11 - Docker Compose

preview_player
Показать описание
Hey gang, in this docker tutorial you'll learn what Docker Compose is & how to use it to easily create images for your projects.

🐱‍💻 Access the course files on GitHub:

🐱‍💻 Modern JavaScript Course:

🐱‍💻 React Course:

Рекомендации по теме
Комментарии
Автор

If anyone is getting error messages when running docker-compose up, there was a version change in July 2023 with Compose from V1 to V2. Use 'docker compose up' instead of 'docker-compose up'.

philcurran
Автор

If you're watching this video after this my comment, and you get an error like this 👇🏾👇🏾


Error response from daemon: invalid mount config for type "volume": invalid mount path: 'app/node_modules' mount path must be absolute

simply replace
./app/node_modules
with
/app/node_modules

and like this comment, if that was helpful.

codepraycode
Автор

You are the reason I became a Developer. Currently working at ATOS. Thank you for so much!

coderOnTwoWeels
Автор

Just watched the 11 videos of this serie about Docker. Great and very clear, thank you. Can't wait for the next one.

navturn
Автор

Finished all docker videos, help me a lot, now I understand docker much better. Thank you!

tech-networking
Автор

Thanks a ton Shaun, you are truly a great teacher!

SouhaibD
Автор

The BEST DOCKER TUTORIAL!!! shukran(thanks)

marvin_e
Автор

thank you so much for these courses . life savour

medzino
Автор

The best teacher ever, Please a Ruby on Rails Course

arkimphiri
Автор

Interesting video, so far the unique where is used 'build' and not 'image' ... Therefore we are able to reuse an edited/updated Dockerfile file - thanks for teach that!

manueljordan
Автор

in previous lesson "Volumes", the anonymous volume was specified as '-v /app/node_modules', but in this lesson, it is specified as './app/node_modules', why there's a dot before /app/node_modules ? that doesn't make sense.

silentnight
Автор

I don't understand why we have to add "/app/node_modules" in volumes if the node_modules is in the "/api" directory and that path is already mapped to ":/app"

Gszada
Автор

what is the solution to this error
Error response from daemon: invalid mount config for type "volume": invalid mount path: 'app/node_modules' mount path must be absolute

alstn
Автор

One Thing I am curios about, as you mentioned before that the image is a blueprint for the container, here I got confused little bit....this means that every container allocate and have it's own files like app.js, package.json etc.. or all the containers of the same image share the resources of the image as it allocated once for all the containers ?

abdelrahmansalem
Автор

What if I run npm install and install a new package while the container runs ? Will the container update?

nikosspiropoulos
Автор

Is it common and/or useful to use Compose even if you only have one container to run? Why/why not?

jesper
Автор

I want to ask that wen i command docker-compose up in terminal display that Error response from daemon: invalid mount config for type "volume": invalid mount path: 'app/node_modules' mount path must be absolute. What is wrong in my case :(((

nhatminhnguyenquang
Автор

hey all, did anyone get this error after running docker-compose up : - Container api_c Creating 0.0s
Error response from daemon: invalid mount config for type "volume": invalid mount path: 'app/node_modules' mount path must be absolute ? I have now downloaded Shaun's code off github but still got the same issue. Thanks for any help!

Dreamingofrainbows
Автор

I got an error because I had a src folder inside the API one so I needed to write the absolute path to resolve it

AminYas
Автор

im using mac.. and i got problems mounting node_modules.. so "- ./app/node_modules" didnt work.. Got error: "'app/node_modules' mount path must be absolute"; need to remove ".", so "- /app/node_modules"

kurisuta