mssql-docker icon indicating copy to clipboard operation
mssql-docker copied to clipboard

Logs get cut off in docker logs

Open davidpendraykalibrate opened this issue 6 years ago • 7 comments

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

davidpendraykalibrate avatar May 18 '18 15:05 davidpendraykalibrate

I really thought there be some command that straighten up theses logs but i havent found it.

image

Doing something wrong to get this logs? docker logs containerID

mrweiland avatar Dec 06 '18 08:12 mrweiland

@davidpendraykalibrate @mrweiland did you find a solution for this? experimenting this for the latest microsoft/mssql-server-windows-developer image.

adriannasui avatar Feb 14 '20 16:02 adriannasui

Facing the same issue - has there been any movement on this?

ghost avatar Feb 24 '20 21:02 ghost

no

md-karim-zocdoc avatar Aug 02 '22 15:08 md-karim-zocdoc

Any update on this?

brunoferreiradev07 avatar Dec 02 '23 01:12 brunoferreiradev07

@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 avatar Dec 02 '23 01:12 thesqlsith

@thesqlsith I am, however I managed to workaround the issue by using format-table -auto -wrap in the Get-EventLog command pipeline.

brunoferreiradev07 avatar Dec 15 '23 10:12 brunoferreiradev07