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

Fix start_container_mirror.sh

parent e0da09f3
#!/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}/"
CONTAINER_DATA_PATH="${PATH_DOCKER_CONTAINERS}/${CONTAINER_NAME}/"
mkdir -p "${container_data_path}/backup"
mkdir -p "${CONTAINER_DATA_PATH}/backup"
docker run \
--name $container_name \
--hostname $host_name \
--name $CONTAINER_NAME \
--hostname $HOST_NAME \
-u 0:0 \
-v $container_data_path:/var/opt/mssql \
-v $CONTAINER_DATA_PATH:/var/opt/mssql \
-e 'ACCEPT_EULA=Y' \
-e 'SA_PASSWORD=yourStrong(!)Password' \
-e 'MSSQL_PID=Enterprise' \
......@@ -22,6 +23,6 @@ docker run \
-e 'TZ=Europe/Moscow' \
-p 1433:1433 \
-p 5022:5022 \
-d mcr.microsoft.com/mssql/server:2019-latest
-d $IMAGE
docker logs -f $container_name
#docker logs -f $CONTAINER_NAME
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