How to create and use a Docker secret from a file

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024

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

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

    Catch up on the latest developer news and tutorials at TechRepublic: www.techrepublic.com/topic/developer/?.com&

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

    What is the alternative for standalone docker?

    • @сойка-и8й
      @сойка-и8й 11 หลายเดือนก่อน

      No there is no alternative for standalone Docker it's available for Docker swarm only.. Docker docs mentions this

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

      @@сойка-и8й That is absolutely false. You can use secrets in a Compose file. Docker docs mentions this

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

      dot env can be used to input text
      dot env (.env)
      `db_password=myNotSoSecurePassword`
      compose.yaml
      `..... MARIADB_PASSWORD=${db_password}`
      $ docker compose --env-file /path/.env up
      It''s not as secure as secrets but atleast better than password inside yaml file

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

      The alternative would be named volumes I presume