Sitemap
Navodya Dhanushka

Navodya Dhanushka

IT undergraduate at SLIIT with backend skills in Node.js, Java, Python, and MySQL. Passionate about scalable systems and learning AI technologies.

2 min readAug 7, 2025

--

Docker

Docker Part 02

දැන් අපි බලමු මොකක්ද මේ Docker කියන්නේ කියලා

කලින් අපි කතා කරා වගේ ම Docker කියන්නේ Dependency Hell Solution එකක් වන Containers එකක්. මේ Docker Containers එක lightweight වගේම minimum resources use කරනවා. ඒ නිසා virtual machine වලට වඩා ඉතාමත් පහසුයි.

Docker use කරන්න අපි මුලින්ම Docker Desktop එක install කරන් ඉන්න ඕනි https://www.docker.com/products/docker-desktop/

Get Navodya Dhanushka’s stories in your inbox

Join Medium for free to get updates from this writer.

මේ Docker desktop එක install කරන් run කරගන්න අපේ local machine එකේ WSL(Windows Subsystem For Linux) install කරන් තියෙන්නත් ඕනි. දැන් අපිට Docker desktop එක use කරන්න පුළුවන්.

දැන් බලමු මොනවද මේ Docker Image හා Docker Container එකක් කියන්නේ කියලා

Press enter or click to view image in full size

මුලින්ම Docker File එක ගැන දැනගමු Docker file එකක කියන්නේ set of instructions අඩංගු file එකක් Docker image එක create කරන්න යොදාගන්න. දැන් බලමු Docker Image එකක් කියන්නේ මොකක්ද Docker image එකක් කියන්නේ සරලවම සැකිල්ලක් අච්චුවක් template එකක් blueprint එකක් වගේ එකක්. මේ image file එකේ අපේ application එක run වෙන්න අවශ්‍ය වෙන සෑම library, dependency එකක්ම ඇතුලත් වෙනවා. ඒ වගේම මේ Docker image එකකින් ඒ සැකිල්ලෙන් අච්චුවෙන් Docker Containers ඕනෑම ගණනක් create කිරීමට පුළුවනි.

දැන් බලමු මොකක්ද මේ Docker Container එකක් කියන්නේ කියලා. Docker Container එකක් කියන්නේ මුලින් කිව්ව Docker image file එක run වීමෙන් create වෙන instance එකක්. ඒ container එක image file එකේ අඩංගු වුණ libraries & dependencies වලින් හැදිල තියනවා. මෙන්න මේ container එක තමා අපි අපේ application එක run කරන්න භාවිතා කරන්නේ.

Press enter or click to view image in full size

--

--

Navodya Dhanushka
Navodya Dhanushka

Written by Navodya Dhanushka

IT undergraduate at SLIIT with backend skills in Node.js, Java, Python, and MySQL. Passionate about scalable systems and learning AI technologies.