1
도커에서 MSSQL 스크립트를 실행하려고했는데 항상 실패합니다 ... 내 구문이 잘못되었거나 ...이 게시물을 보았지만 그것은 ...이 오류Docker : 도커 이미지 외부에서 mssql 스크립트 실행
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "exec: \"/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ************** -q </CRE.sql\": stat /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P AucMa1633485 -q </CRE.sql: no such file or directory"
나는 또한이 같은 시도를 반환 Executing SQL scripts on docker container
docker exec mssql '/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P gitgood12345 -q </CRE.sql'
작동하지 않습니다
sudo docker exec -it mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'gitgood12345' -q </CRE.sql
Sqlcmd: '-q': Missing argument. Enter '-?' for help.
이 제발 도와주세요 명령은 나에게 잘 모르겠어요이 오류를 반환 0
이유 ... ... 작동하는 데 사용되는 두 번째 방법, 나는 매개 변수 또는 뭔가를 잊어 버린 것 같아요. ..
스택 오버플로는 프로그래밍 및 개발 관련 질문에 대한 사이트입니다. 이 질문은 프로그래밍이나 개발이 아니기 때문에 주제와는 거리가 먼 것처럼 보입니다. 도움말 센터에서 [여기에서 내가 질문 할 수있는 항목은 무엇입니까?] (http://stackoverflow.com/help/on-topic)를 참조하십시오. 아마도 [Super User] (http://superuser.com/) 나 [Unix & Linux Stack Exchange] (http://unix.stackexchange.com/)가 더 나은 곳이 될 것입니다. – jww