Docker

[Docker] Basic Configuration and Functions

brightlightkim 2022. 4. 22. 02:24

What if we could bundle all our application code, support binaries, and deploy it to our servers

 

Docker focuses on:

  • Build Image
  • Ship Image
  • Run Image

Docker leads to:

  • CI/CD
  • Different Versions
  • Roll Forward
    • When we find defects >> developers can fix them easily

Docker Configuration (Runs same environment)

  • FROM
    • The first thing to add dependency
    • alpine
      • language of lambda
  • ENV
    • Setting ENV variables
  • COPY
    • copy everything to this system
  • WORKDIR
    • Working directory
  • EXPOSE
    • Which server to use
  • CMD
    • Makes the command

 

'Docker' 카테고리의 다른 글

[Docker] Basic Commands with a Docker Container  (0) 2022.04.28
[Docker] Build Containers from scratch  (0) 2022.04.26
[Docker] Overview  (0) 2022.04.22
[Docker] Intro (Get Started)  (0) 2022.04.03