Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to restart mssql-server in Ubuntu 16.04 image #53

Closed
ademars94 opened this issue Mar 21, 2017 · 3 comments
Closed

Unable to restart mssql-server in Ubuntu 16.04 image #53

ademars94 opened this issue Mar 21, 2017 · 3 comments

Comments

@ademars94
Copy link

ademars94 commented Mar 21, 2017

Hey,

I am trying to restore a .bak into a mssql-server database in a Docker container, and I came across something weird while trying to get it working.

The documentation for setting up mssql-server on Ubuntu often requires the user to restart mssql-server with the following command (I am running this from a shell in my container and it's throwing an error):

$ systemctl restart mssql-server
Failed to connect to bus: No such file or directory

As far as I understand, you cannot run this command inside of a Docker container. The docs suggest using the systemctl command to restart mssql-server, but this cannot work, as systemctl requires systemd, which is not actually running in the image.

What should I do?

@twright-msft
Copy link
Collaborator

twright-msft commented Mar 21, 2017

Correct, systemd is not available in containers. SQL Server runs as a process 'sqlservr' in the container. To "restart" SQL Server when it is running in a contain you need to stop and start the container.

Just curious - what were you trying to do which required a restart?

@twright-msft
Copy link
Collaborator

Anything else here @ademars94 or can we close this issue out?

@ademars94
Copy link
Author

ademars94 commented Mar 23, 2017

@twright-msft I was trying to restore a .bak file from within my container. I don't remember exactly where I was in that process where I was required to restart. I was editing some config stuff, following along with Microsoft's guide to SQL Server on Ubuntu, and my config changes required a restart to take effect.

I'll go ahead and close the issue, since your answer about systemd satisfies the topic I posted about (for any future troubleshooters trying to figure out how to restart). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants