Unable to start sql server with volume mounted #16553
aadithya96
started this conversation in
General
Replies: 1 comment 4 replies
-
If you change your target to
Does this fix the problem. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
/kind bug
Description
I'm unable to start sql Server container when binding volumes. We are currently migrating from docker and we had docker containers running mssql before. I'm now trying to use the same files created in docker so that podman could be a drop-in replacement.
The container is up and running if the -v flag is not added.
I tried running the container as root user, pass the --security-opt label=disable: flag with no luck.
Also tried with the following compose file :
Error shown :
PS: First time trying out podman, TIA. Also, this will be for local dev purposes, so not much bothered about SELinux and security.
Steps to reproduce the issue:
podman run -ti --name mssql --network=host -e SA_PASSWORD='YourStrong!Passw0rd' -v .\sql_volume:/var/opt/mssql:Z -e ACCEPT_EULA=Y mcr.microsoft.com/mssql/server:2017-latest
Describe the results you received:
Container throws an error and exits.
Describe the results you expected:
Container should start without any errors
Additional information you deem important (e.g. issue happens only occasionally):
When passing the -v flag, there's a message saying :
Your master database file is owned by nobody.
No such message is shown with -v, so, a permission issue I guess?
Output of
podman version
:Output of
podman info
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes/No
Additional environment details (AWS, VirtualBox, physical, etc.):
Running on Windows 11 21H2 (Builld 22000.1281)
Beta Was this translation helpful? Give feedback.
All reactions