Gen-AI Developer Classroom notes 01/Nov/2025

Key Terms

Installing docker

  • windows
winget install --id=Docker.DockerDesktop -e
  • mac
brew install --cask docker
  • create account in docker hubc

  • Conventions:

    • Docker images
      • official images: application (:)
        • Example nginx, memcached
      • verified publishers/sponsered oss <org>/<image>:<tag>
        • jenkins/jenkins:jdk21
      • Private image: <dockerusername>/<image>:<tag>
        • shaikkhajaibrahim/openmrs:latest

Lets try running mysql database inside a docker container

  • image: mysql:9
  • to view local images docker image ls or docker images
  • To download image into your system docker pull mysql:9 or docker image pull mysql:9
    Preview
  • To delete the image docker rmi mysql:9
  • To create a container
docker run --name mysqldb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=admin123 -e MYSQL_DATABASE=learning -e MYSQL_USER=ltpython -e MYSQL_PASSWORD=admin123 -d mysql:9
  • To view the containers
docker ps
  • To connect ensure you have mysql client
mysql -u root -p

Lets try running postgres database inside a docker container

  • image: postgres:18
  • To download the image docker pull postgres:18
  • Exercise

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading