You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm new to Docker and SqlServer, and I'm trying to get a developer container working locally on my Ubuntu computer running Docker.
Setting MYSQL_PID=Developer environment variable is not respected by the container, and as a result it goes down as soon as it's created.
# mssql/DockerfileFROM mcr.microsoft.com/mssql/server:2022-latest
# Ensure SQL Server has permissions on its data directoryUSER root
RUN mkdir -p /var/opt/mssql && chown -R mssql:mssql /var/opt/mssql
USER mssql
EXPOSE 1433
CMD ["/opt/mssql/bin/sqlservr"]
This container is running as user mssql.
To learn more visit https://go.microsoft.com/fwlink/?linkid=2099216.
2025-03-12 05:11:12.87 Server ERROR: The provided PID [] is invalid. The PID must be in the form #####-#####-#####-#####-##### where '#' is a number or letter.
Thank you in advance for your assistance.
The text was updated successfully, but these errors were encountered:
lkdm
changed the title
Setting MYSQL_PID=Developer does not work
MYSQL_PID=Developer not being set
Mar 12, 2025
Failed to mention I'm running this through Devpod... It turns out the --recreate flag for devpod only recreates the main container? I'm not sure, either way my changes to the docker-compose.yml were not being reflected when recreating the devpod setup.
That's not a devpod thing rather than a Docker or a "this specific images works like that" thing:
The SQL Server container gets set up during the first run with the provided MSSQL_PID. When restarting the container, it kinda gets ignored since the initial setup already completed. So yes, recreating it should make it re-run the initial setup and therefore respecting the provided MSSQL_PID environment variable.
Hi I'm new to Docker and SqlServer, and I'm trying to get a developer container working locally on my Ubuntu computer running Docker.
Setting
MYSQL_PID=Developer
environment variable is not respected by the container, and as a result it goes down as soon as it's created.Running
docker logs db_dev
outputs the following:Thank you in advance for your assistance.
The text was updated successfully, but these errors were encountered: