bash: C:/Program: No such file or directory

后端 未结 1 1200
梦谈多话
梦谈多话 2021-01-29 02:17

I am new to Docker, Debezium, Bash, and Kafka. I am attempting to run the Debezium tutorial/example for MSSQL Server on Windows 10 here:

https://github.com/debezium/deb

1条回答
  •  失恋的感觉
    2021-01-29 02:47

    I had a similar problem yesterday, the solution was adding a backslash before the absolute path, like :

    cat debezium-sqlserver-init/inventory.sql | docker exec -i tutorial_sqlserver_1 bash -c '\/opt/mssql-tools/bin/sqlcmd -U sa -P $SA_PASSWORD'
    

    \/opt/mssql-tools/bin/sqlcmd prevents conversion to Windows path.

    0 讨论(0)
提交回复
热议问题