👁 เทคนิคต่าง ๆ ที่ใช้ในคลิป
1. การ pull image จาก docker
2. การแสดง images ที่มีในเครื่อง
3. การ run postgres container
4. การทำ data persistence ด้วย volume เพื่อเก็บข้อมูลของฐานข้อมูลไว้
script สำคัญที่ใช้ในคลิปนี้
postgres on docker hub
https://hub.docker.com/_/postgres
pull docker image
docker pull postgres
list images
docker images
run postgres on docker
docker run --name pegasus --rm -e POSTGRES_PASSWORD=banana -d -p 5432:5432 postgres
list process
docker ps -a
exec command in container
docker exec -it pegasus psql -U postgres
connect to postgres from terminal
psql -U postgres -h localhost
stop process
docker stop pegasus
persist data (using volume)
docker run --name pegasus --rm -e POSTGRES_PASSWORD=banana -d -p 5432:5432 -v pgdatavolume:/var/lib/postgresql/data postgres
เชิญสมัครเป็นสมาชิกของช่องนี้ได้ที่ ► https://www.youtube.com/subscription_...
สอน docker ► • สอน docker เบื้องต้น
สอน PostgreSQL ► • สอน PostgreSQL
สอน MySQL ► • สอน MySQL 8
สอน Microsoft SQL Server 2012, 2014, 2016, 2017 ► • สอน Microsoft SQL Server
สอน SQLite ► • สอน SQLite
สอน SQL สำหรับ Data Science ► • Playlist
การเชื่อมต่อกับฐานข้อมูล (SQL Server, MySQL, SQLite) ด้วย Python ► • สอนไพธอน Python 3 การติดต่อกับฐานข้อมูล
การใช้ Excel ในการทำงานร่วมกับกับฐานข้อมูล (SQL Server, MySQL, Access) ► • สอน Excel: ฐานข้อมูลและการดึงข้อมูลจา...
#prasertcbs_SQL #prasertcbs #prasertcbs_PostgreSQL #docker