3 Amazing New Docker Features Explained | Build Cloud, Scout, Init

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 8

  • @AqibMughal-xg4jx
    @AqibMughal-xg4jx 7 หลายเดือนก่อน

    Hats off to your Work Sir. You're doing such a great job

  • @DBX79
    @DBX79 หลายเดือนก่อน

    Really cool stuff!

  • @zxyi9090
    @zxyi9090 10 หลายเดือนก่อน +1

    Yes, very useful and thanks for highlighting

  • @andr101
    @andr101 7 หลายเดือนก่อน

    Thanks for the clear information

  • @shaunrosario112
    @shaunrosario112 10 หลายเดือนก่อน

    Hey Travis,sorry I know this might not be video topic related but if I am planning to start of with Kubernetes after having watched your videos for the prerequisites// Can I start with the Certified Kubernetes Administrator (CKA) with Practice Tests in Udemy or do I HAVE to start with the beginners course before that?
    Great video btw!!

  • @abdirahmanabdullahi5471
    @abdirahmanabdullahi5471 10 หลายเดือนก่อน

    Is there a way to create docker image for existing postgres database with its data? I have spring boot application that works with postgres. I want to create an image using with using docker compose file.

    • @FranckJacottin
      @FranckJacottin 10 หลายเดือนก่อน

      1 - SQL Dump
      pg_dump -U your_username -h localhost -p 5432 your_database_name > your_database_dump_file
      2 - Create a Dockerfile from your DB
      FROM postgres:latest
      ENV POSTGRES_USER your_username
      ENV POSTGRES_PASSWORD your_password
      ENV POSTGRES_DB your_database_name
      COPY ./your_database_dump_file /docker-entrypoint-initdb.d/
      3 - create a compose file
      version: '3'
      services:
      postgres:
      build:
      context: .
      dockerfile: Dockerfile
      ports:
      - "5432:5432"
      environment:
      POSTGRES_USER: your_username
      POSTGRES_PASSWORD: your_password
      POSTGRES_DB: your_database_name
      spring-boot-app:
      image: your_spring_boot_app_image
      ports:
      - "8080:8080"
      depends_on:
      - postgres
      4 - run
      docker-compose up --build

    • @abdirahmanabdullahi5471
      @abdirahmanabdullahi5471 9 หลายเดือนก่อน

      @@FranckJacottin Thanks. It finally worked after struggle.