Hello, I have a Mac OS X application which I want to install. I am having database(.bak file) of approx 9 Gb and I am using.tar file installing/loading SQL server.
I am using Docker to load sql server and copy.bak file into docker container and after then converting bak file into mdf and ldf. I am using developer edition for SQL server.
The issue I am facing is it is not loading sql server for 10.13.3 OS X MYPATHSOURCEDIRECTORY is source folder path docker stop container SERVERFILE='$MYPATHSOURCEDIRECTORY/server.tar' docker rm container docker load -i “$SERVERFILE” Attached is the screenshot for the reference. Regards, Itesh Dutt. Hello, Please find below the output from Terminal and commands which I have used to execute. Command File docker stop container SERVERFILE='$MYPATHSOURCEDIRECTORY/server.tar' docker rm container docker load -i “$SERVERFILE” Terminal Error: No such container: container Loading sql server.
2017-7-13 Docker for Mac is a Docker Community Edition (CE) app and aims for a native OSX experience that works with existing developer workflows. The Docker for Mac install package includes everything you need to run Docker on a Mac.
Iteshdutt: docker run -d -name container -e ‘ACCEPTEULA=Y’ -e ‘SAPASSWORD=P@55w0rd’ -e ‘MSSQLPID=Developer’ -p 1433:1433 server what is ‘server’ did u make a special image? It is possible that something happened and the containers single process stopped executing if you do docker logs container (container name or id) is anything shown? If you do docker inspect sever (the image name) you will find the entrypoint definition to see that program is supposed to be running when the container starts. Hello, SERVERFILE='$MYPATHSOURCEDIRECTORY/server.tar' docker load -i “$SERVERFILE” docker run -d -name container -e ‘ACCEPTEULA=Y’ -e ‘SAPASSWORD=P@55w0rd’ -e ‘MSSQLPID=Developer’ -p 1433:1433 server I am using server.tar image/binary file.
This issue works fine on other Mac OS X. I have tried it on 10.12.5,10.12.6 OS X. docker logs container (container name or id) docker logs 8f03e5816e5ed5ade045242721c0d2a4c6490519bdbf50d21384dc1b4f9568db Dump collecting thread 7 hit exception 6. GAs-MacBook-Pro: ga$ docker inspect /Users/ga/Documents/Desktop/IteshTestJKLawsPackage/9 GB/server.tar Error response from daemon: no such image: Users/ga/Documents/Desktop/IteshTestJKLawsPackage/9 GB/server.tar: invalid reference format: repository name must be lowercase GAs-MacBook-Pro: ga$ cd /Users/ga/Documents/Desktop/IteshTestJKLawsPackage/9 GB GAs-MacBook-Pro:9 GB ga$ docker inspect server.tar Error: No such object: server.tar Regards, Itesh Dutt. Iteshdutt: docker load -i “$SERVERFILE” when that completes there should be a new image created.
The name of the image is what was defined when the tar was created. Then you would docker inspect server which is the name of the image or docker inspect container which is the name of the container u started docker inspect server.tar you do not inspect the FILE, but the image created from the file. But the error is Dump collecting thread 7 hit exception 6. In the docker log from the db import i don’t know where in mysql you look for source dbbackup.dump. Restore problem. Hello, Let me elaborate the problem from the start: Firstly the problem is OS X specific 10.13.3. For previous versions including (10.11, 10.12 and upto 10.13.2 it is working fine) I am using following docker file to create an image.
I don’t see any mechanism to get the sqlserver command to run in the foreground so you will have to come up with some other process you could create a little script which sleeps and loops #!/bin/sh # sleep for a day at a time. While true; do sleep 86400 done and do that last u could also use one of the existing images on dockerhub microsoft/mssql-server-linux whose CMD is 'Cmd': '/bin/sh', '-c', '/opt/mssql/bin/sqlservr' note that this is a nice trick it runs /bin/sh, in single command mode -c, which will wait for the started thing to end, and then starts sqlserver which never ends ps I found this out by docker pull microsoft/mssql-server-linux docker inspect microsoft/mssql-server-linux and looked at its CMD definition from its dockerfile.
That was a stupid mistake. Everything worked well with docker. The problem was with Flask app, it is listening only for localhost by default. To make it listen to the network you need to set app.run(host= '0.0.0.0') So here is how it all works:. Boot2docker installs virtual machine to you mac.
![Mac Mac](http://collabnix.com/wp-content/uploads/2017/07/Screen-Shot-2017-07-13-at-10.05.21-PM.png)
You could ssh into it with boot2docker ssh. That virtual machine is like a gateway to running containers.
![Scrabble for mac os x Scrabble for mac os x](/uploads/1/2/5/6/125671788/347314647.png)
Each container is a virtual pc behind that gateway. If you ssh'ed to the vm, you could ping containers. To find out container's ip you should attach to it docker exec -it bash Now you're inside container. You could run ifconfig or ip addr show to see you container's ip. Once you have container's ip you can ping it from vm. And try to connect to the exposed port.
( if you see 0.0.0.0:49155-5000/tcp in docker ps then to 5000) curl containerip:containerport For me it refused to connect, however i could connect from container itself via curl localhost:5000 Thats how i figured it out.