我在Docker Compose中遇到错误.撰写文件是
version: '2'
services:
api:
build:
context: .
dockerfile: webapi/dockerfile
ports:
- 210
web:
build:
context: .
dockerfile: app/dockerfile
ports:
- 80
lbapi:
image: dockercloud/haproxy
links:
– api
ports:
– 8080:210
lbweb:
image: dockercloud/haproxy
links:
– web
ports:
– 80:80
Run Code Online (Sandbox Code Playgroud)
运行时的错误docker-compose up
是:
ERROR: The Compose file '.\docker-compose.yml' is invalid because:
services.lbapi.ports contains an invalid type, it should be an array
services.lbweb.ports contains an invalid type, it should be an array
services.lbapi.links contains an invalid type, it should …
Run Code Online (Sandbox Code Playgroud) 这可能是一个愚蠢的问题,但我必须添加对%programfiles(x86)%
文件夹(在64位机器上)或%programfiles%
文件夹(在32位机器上)的引用.我还必须设置CopyLocal
为false,以便DLL不会复制到bin/debug
我的项目的文件夹,但始终指向相同的%programfiles%
位置.
如何%programfiles(x86)%
在Visual Studio 2010中添加引用?
我曾经在SQL Server数据库上工作过.现在我必须处理Sybase数据库(使用Squirrel客户端).此查询无效:
DECLARE @tableName VARCHAR(500);
DECLARE my_cursor CURSOR FOR
SELECT name
FROM sysobjects
WHERE type = 'U';
OPEN my_cursor;
FETCH NEXT FROM my_cursor INTO @tableName;
WHILE @@FETCH_STATUS = 0
BEGIN
//Do something here
FETCH NEXT FROM my_cursor;
END
CLOSE my_cursor;
DEALLOCATE CURSOR my_cursor;
Run Code Online (Sandbox Code Playgroud)
它给出了一个错误 - Incorrect syntax near the keyword 'FROM'.
SQLState: ZZZZZ
ErrorCode: 156
Error occured in:
FETCH NEXT FROM my_cursor INTO @table_Name
现在这在SQL Server数据库中工作正常(在我将最后一行更改为之后DEALLOCATE my_cursor
.有人可以告诉我哪里出错了吗?
我已经阅读了一些我们可以IScorable.cs
用来实现全局可用命令的地方,例如在聊天流程中的任何地方输入"设置"以打开设置对话框.但似乎没有关于如何使用它的文档.
请帮忙.