MS SQL sample database container images (MS SQL Server on Linux)
208
Use this repository to create SQL database containers w/ Docker and complete SQL training assignments.
$containerName = "<INSERT DATABASE NAME HERE>"
$imageName = "mssql_database_containers"
$namespace = "seromaho"
$hostPort = "1433"
# Pull the image from the Docker Hub registry
docker pull "${namespace}/${imageName}:${containerName}"
# Create a writeable container layer over the specified image
# Start the new container
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=P@ssw0rd" -p "${hostPort}:1433" --name "${containerName}" -d "${namespace}/${imageName}:${containerName}"
containerName="<INSERT DATABASE NAME HERE>"
imageName="mssql_database_containers"
namespace="seromaho"
hostPort="1433"
# Pull the image from the Docker Hub registry
docker pull "${namespace}/${imageName}:${containerName}"
# Create a writeable container layer over the specified image
# Start the new container
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=P@ssw0rd" -p "${hostPort}:1433" --name "${containerName}" -d "${namespace}/${imageName}:${containerName}"
seromaho/mssql_database_containers:<database name>localhost:1433; MSSQL login name: SA; MSSQL SA password: P@ssw0rdassignments.md) at MSSQL-Database-ContainersContent type
Image
Digest
sha256:a9cc6a8b4…
Size
473.5 MB
Last updated
almost 4 years ago
docker pull seromaho/mssql_database_containers:zoo_db