我下载了最新版本的 SQL Server 映像,并按照此处docker hub 页面中给出的说明进行操作
问题是当我通过运行以下命令启动容器时,容器停止,并且我无法在正在运行的容器中找到它docker ps
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=fakepassw0rd' -p 1433:1433 mcr.microsoft.com/mssql/server
Run Code Online (Sandbox Code Playgroud)
结果 :
2019-04-22 19:16:13.67 Server Setup step is copying system data file 'C:\templatedata\master.mdf' to '/var/opt/mssql/data/master.mdf'.
2019-04-22 19:16:13.74 Server Did not find an existing master data file /var/opt/mssql/data/master.mdf, copying the missing default master and other system database files. If you have moved the database location, but not moved the database files, startup may fail. To repair: shutdown SQL Server, move the master …Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一个全局节点包,以便在该包的运行目录中执行某些操作。例如,我想使用该节点包 CLI 删除一些文件。该命令将是这样的:
my-package ./test-file.txt
Run Code Online (Sandbox Code Playgroud)
如何获取./test-file.txt路径作为包节点应用程序中的参数?我认为它应该出现在争论中,但如果有更好的方法,我将很高兴知道这一点。