Commit b55ed02e authored by pasden's avatar pasden 💬
Browse files

Update start_container.sh

parent 47fbbc82
#!/bin/sh
container_name="itinvent"
host_name="yourHost"
path_docker_containers="/volume1/docker"
CONTAINER_NAME="itinvent"
HOST_NAME="yourHost"
PATH_DOCKER_CONTAINERS="/volume1/docker"
IMAGE="mcr.microsoft.com/mssql/server:2019-latest"
container_data_path="${path_docker_containers}/${container_name}/"
mkdir -p "${container_data_path}/backup"
CONTAINER_DATA_PATH="${PATH_DOCKER_CONTAINERS}/${CONTAINER_NAME}/"
docker run \
--name $container_name \
--hostname $host_name \
-u 0:0 \
-v $container_data_path:/var/opt/mssql \
--name $CONTAINER_NAME \
--hostname $HOST_NAME \
-v $CONTAINER_DATA_PATH:/var/opt/mssql \
-e 'ACCEPT_EULA=Y' \
-e 'SA_PASSWORD=yourStrong(!)Password' \
-e 'MSSQL_PID=Developer' \
-e 'MSSQL_PID=Enterprise' \
-e "MSSQL_MEMORY_LIMIT_MB=2048" \
-e 'TZ=Europe/Moscow' \
-p 1433:1433 \
-d mcr.microsoft.com/mssql/server:2019-latest
docker logs -f $container_name
-p 5022:5022 \
-d $IMAGE
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment