dockerのインストールからpostgresqlのコンテナを実行するまで

postgresql docker Published at Feb. 7, 2025, 9:44 p.m. by admin@senrigan.org

sudo apt install gnome-terminal
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo   "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo docker run hello-world
sudo apt-get install ~/Downloads/docker-desktop-amd64.deb
docker run --name=kuronekodb -e POSTGRES_DB=kuroneko -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=xxxxxx -p 5432:5432 -d postgres:16.6