BUILD YOUR OWN DOCKER USING DOCKER SDK AND PYTHON PART 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ย. 2024
  • Welcome to my TH-cam channel! In this video, we explore the powerful combination of Docker and Python by diving into the Docker SDK for Python. Join me as I showcase two code examples that demonstrate how to leverage the Docker SDK to create and manage Docker containers effortlessly.
    In the first code example, we walk you through the process of creating a Docker container using a Dockerfile. Dockerfiles are text files that contain instructions for building Docker images. With the Docker SDK for Python, I automate the container creation process, making it simpler and more efficient.
    Next, we move on to the second code example, where we demonstrate how to generate a Dockerfile dynamically using Jinja2. Jinja2 is a popular templating engine for Python that enables us to create dynamic text files. I showcase how to use Jinja2 to generate Dockerfiles with placeholders replaced by actual values, providing flexibility and ease of customization.
    Throughout the video, I will explain the code snippets step-by-step, highlighting key concepts and best practices.
    Whether you're new to Docker or an experienced user looking to automate container management with Python, this video is a must-watch. Join me on this exciting journey of using Docker SDK with Python to simplify and streamline your containerization workflows.
    Don't forget to like, comment, and subscribe to our channel for more informative content on Docker, Python, and other exciting technologies. Hit the notification bell to stay updated with our latest videos. Happy coding!
    USEFUL LINKS -
    Docker SDK Part 1 - • BUILD YOUR OWN DOCKER ...
    Creating own CI/CD Pipeline - • 𝐂𝐈/𝐂𝐃 𝐏𝐢𝐩𝐞𝐥𝐢𝐧𝐞𝐬 𝐔𝐬𝐢𝐧𝐠 ...
    Weekend Talks - • WEEKEND TALKS
    KEEP INNOVATING!!!

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

  • @Grucha1998
    @Grucha1998 ปีที่แล้ว +1

    Hi! What is the best way to connect, to docker on Vps server? I want to interact with many containers on my vps, but i dont know the best way to do that. 🤔
    I think about Docker-py but i didnt find good guide to make ssh connection with password etc to the server.
    Paramiko is good for generally conneting to ssh, but if i want to use docker and interact with containers maybe there are better ways, are they?

    • @futureautomation2504
      @futureautomation2504  ปีที่แล้ว

      From what I have found you can connect with Docker SDK and python but you need to make sure that Docker is accepting all types of requests for that you need to modify Docker demon config file.

    • @futureautomation2504
      @futureautomation2504  ปีที่แล้ว

      Than from the code you can try to add base url as your ip and port on which the demon is running that might work