Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Last active October 21, 2020 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipsj/ed83abb10294a9a69cf20c3c877627e5 to your computer and use it in GitHub Desktop.
Save phillipsj/ed83abb10294a9a69cf20c3c877627e5 to your computer and use it in GitHub Desktop.
Setting the hostname when running a SQL Server Container
$ docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=SuperCoolPass123" -p 1636:1433 --name sqlserver --hostname sqlserver -d mcr.microsoft.com/mssql/server:2019-latest
4ef2e5e0c9c91b4f1e86ef807262d0f639b10ae7364c9c9cce0996e3dc28d8db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment