Customize Dev Containers in VS Code with Dockerfiles and Docker Compose

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • Dev containers provide a consistent and reproducible development environment and work by running a Docker container. Follow along with the demo to customize your dev containers by using a Dockerfile, Docker compose, and even a combination of both! ⚡️💻
    Resources:
    Using Images, Dockerfiles, and Docker Compose guide: aka.ms/dev-container-docker
    Dev Container Specification: containers.dev
    Image or Dockerfile specific properties: aka.ms/containers_image-specific
    Docker Compose specific properties: aka.ms/containers_compose-spe...
    0:00 Intro
    0:49 Dockerfile demo
    2:47 Docker Compose demo
    4:46 Docker Compose + Dockerfile demo
    5:45 Summary
  • НаукаНаука

Комментарии • 23

  • @codernerd7076
    @codernerd7076 5 месяцев назад +8

    Dev containers are amazing and vs code makes them more easy to work with!

  • @David-oc8yt
    @David-oc8yt 5 месяцев назад +1

    Been wanting to use devcontainers for some time. This was super useful and thorough; thank you!

  • @synthmania7275
    @synthmania7275 4 месяца назад

    just got started with Docker and containers.. This is super cool!!! Subscribed..!! Thank you!!

  • @aureliocampos5845
    @aureliocampos5845 4 месяца назад

    Direto ao ponto!
    Obrigado

  • @hirobnet
    @hirobnet 4 месяца назад +1

    I look forward to seeing Dev Containers with helm chart setup to run multiple containers in my local env which can potentially replace Tilt.

  • @rafosoalc
    @rafosoalc 2 месяца назад

    Very good!

  • @ScoffMathews
    @ScoffMathews 5 месяцев назад +2

    I just had my laptop replaced and decided to dive into this instead of figuring out how to setup ~12 dev environments again.

  • @AnderZvyEvalApply
    @AnderZvyEvalApply 15 дней назад

    awesome I can have my multiple projects enviroment safe, beatuful

  • @serhioromano
    @serhioromano 5 месяцев назад

    Please create a video to explain where it mounts my working folders by default and how to change it with all those methods you've mentioned in this video.

  • @mohamedhaneef6379
    @mohamedhaneef6379 5 месяцев назад +1

    👍🏻

  • @KennTollens
    @KennTollens 5 месяцев назад

    Pro tip (Well, I'm a beginner and had to stop two annoying things. Maybe you have the same issue.)
    // Gets rid of the mouse over popups like the MDN ones.
    Setting and search Hover, then uncheck the boxes
    // Copies just the highlighted section instead of the entire line.
    Setting and search empty selection clipboard, and uncheck the box

  • @ibrahim-tech
    @ibrahim-tech 5 месяцев назад

    I thought this is a video about living in US Like tips and such but it turned out to be a vlog

  • @yomajo
    @yomajo 5 месяцев назад

    Whats the advantage over docker compose? Sharing? Git clone. Or ocker pull within compose..

  • @alessioruggi9676
    @alessioruggi9676 9 часов назад

    Super useful video! I have a question, so using devcontainers is just a way to avoid using Dockerfile and Docker-Compose, or just a faster way to have an image if you don't need to do any customization?

  • @michaelpacheco7421
    @michaelpacheco7421 5 месяцев назад

    When I followed the steps to setup devcontainer with dockerfile and compose, all my files inside the container are under root user. How can I chwon them to my host user?

  • @user-ny2lt3pc1x
    @user-ny2lt3pc1x 5 месяцев назад

    Can you please make a video on Dev Container with Docker compose for multiple containers for remote vm on gcp

  • @josersleal
    @josersleal 3 месяца назад

    q: how to run a plugin like ollama or other ai code complection from inside a dev container? ideally without having to install the ollama + llm inside the container

  • @thetrilbies1
    @thetrilbies1 2 месяца назад

    Would you have a github repo for this demo. I tried to follow your video and could not see the entire path for the workspaceFolder name ${localWorkspaceFolderBasename. ? ? Thanks.

  • @Netryon
    @Netryon 5 месяцев назад

    I'm just fine setting up apache 2 and php.ini. I may not know everything about it, or some security vulnerabilities. So let some not well known docx keywords be your roadblock just because you want to me some secret stealth assassin Priest Rogue Mage accompanied by a death knight. It's already too much setting up those .ENV files and .json files. Postgres ... enough of this, you wished to create a game so please do that. Why it's does not have that UI? WHY? Why i have to memorize all the strings? Why it is not Virtualbox or Vmware with an intuitive UI? I like wish Laravel/Angular they tell me do it with Symfony/React and then have a freedom to say it's not an employee we tried to find.

    • @ScoffMathews
      @ScoffMathews 5 месяцев назад +1

      whatchoo talkin' 'bout Willis?

    • @Netryon
      @Netryon 5 месяцев назад

      @@ScoffMathews no about star craft swarm and legacy

  • @Netryon
    @Netryon 5 месяцев назад

    Oh no I'm not editing it with gimp, I'm buying Adobe license I hear they can do incredible things with it at presidential election which is about now. I don't like your containers, they take too much space and are build by anybody or it's message - Desired container couldn't be found with all the prerequisites - let's begin with running Apache, Mysql and php because I just can debug with php builtin command. Yaml is another well know tool. I don't refuse, but you don't give me a chance.