mssql-docker
mssql-docker copied to clipboard
Logs get cut off in docker logs
If I run docker logs {containerName}
, the logs are coming out like:
5/18/2018 2:27:16 PM Information The SQL Server Network Interface library co...
Expected: I can see full message. Actual: The message here is being cut off.
I'm running the image microsoft/mssql-server-windows-express
on Windows 10
My docker version is:
Docker version 18.05.0-ce, build f150324
I really thought there be some command that straighten up theses logs but i havent found it.
Doing something wrong to get this logs?
docker logs containerID
@davidpendraykalibrate @mrweiland did you find a solution for this? experimenting this for the latest microsoft/mssql-server-windows-developer image.
Facing the same issue - has there been any movement on this?
no
Any update on this?
@brunoferreiradev07, are you still seeing this with our latest images? The image that was being used when this issue was originally opened is fairly old and is no longer available on any of the repos that we publish container images. All of our images are now on the Microsoft Container Registry for Ubuntu based images and the Red Hat Container registry for Red Hat based images. Please refer to the container images documentation - https://learn.microsoft.com/sql/linux/sql-server-linux-overview?view=sql-server-ver16#container-images for more information.
If you are still experiencing an issue with the logs not wrapping and being truncated from the docker logs or the podman logs command, please let us know. We would also encourage you to log a feedback item at https://aka.ms/sqlfeedback with any additional details that you wish to provide.
Please note that we had suspended the SQL Server on Windows containers program in July of 2021 and currently only publish and support SQL Server on Linux containers - https://techcommunity.microsoft.com/t5/sql-server-blog/update-beta-program-for-sql-server-on-windows-container-is/ba-p/2516639.
@thesqlsith I am, however I managed to workaround the issue by using format-table -auto -wrap
in the Get-EventLog
command pipeline.