In this video you will learn how to use docker for run an instance of SQL Server 2017 with minimal configuration on Ubuntu 22.04.
INSTALL DOCKER
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable"
sudo apt-get update
sudo apt install docker-ce
sudo usermod -aG docker "here your username"
sudo chmod 777 /var/run/docker.sock
sudo systemctl enable docker
sudo systemctl start docker
sudo systemctl status docker
INSTALL DOCKER COMPOSE
sudo curl -L "https://github.com/docker/compose/releases... -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
CRATE DOCKER NETWORK
docker network create catalog_network_dev
DOCKER COMPOSE FILE
version: "3.9"
services:
catalog_service_dev:
image: mcr.microsoft.com/mssql/server:2017-latest
restart: unless-stopped
container_name: catalog_container_dev
hostname: catalog.dev
ports:
"1433:1433"
volumes:
catalog_volume_dev:/var/opt/mssql
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "Admin123"
volumes:
catalog_volume_dev: {}
networks:
default:
external: true
name: catalog_network_dev
STARTING SQL SERVER AS DOCKER CONTAINER
docker-compose up --build -d
On this page of the site you can watch the video online Tutorial SQL Server on Docker with a duration of hours minute second in good quality, which was uploaded by the user No Coding No Life 07 November 2022, share the link with friends and acquaintances, this video has already been watched 144 times on youtube and it was liked by 0 viewers. Enjoy your viewing!