当我使用此docker-compose.yml运行docker-compose up
时。
https://github.com/rundeck/docker-zoo/blob/master/cloud/docker-compose.yml
我收到以下错误:
xxxx_mysql_1 is up-to-date
Creating xxxx_rundeck_1 ... error
ERROR: for xxxx_rundeck_1 Cannot create container for service rundeck: create .: volume name is too short, names should be at least two alphanumeric characters
ERROR: for rundeck Cannot create container for service rundeck: create .: volume name is too short, names should be at least two alphanumeric characters
ERROR: Encountered errors while bringing up the project.
在docker-compose.yml或Dockerfile中的任何地方都没有看到create .
语句。
我想念什么?
答案 0 :(得分:0)
您需要更新env文件中的变量。它带有注释,因此为配置添加了空值。 https://github.com/rundeck/docker-zoo/blob/master/cloud/.env.dist#L3
用于
https://github.com/rundeck/docker-zoo/blob/master/cloud/docker-compose.yml#L27
我遇到了同样的问题,一旦我用值更新了环境变量,它就解决了。
答案 1 :(得分:0)
包含import cv2
import matplotlib.pyplot as plt
import numpy as np
def img_show(images, cmap=None):
fig = plt.figure(figsize=(17, 10))
root = 3 # len(images) ** 0.5
for i, img in enumerate(images):
ax = fig.add_subplot(root, root, i + 1)
ax.imshow(img, cmap=cmap[i])
plt.show()
class Config:
scale = 0.4
min_threshold = 120
max_threshold = 200
canny_min_threshold = 100
canny_max_threshold = 200
config = Config()
def find_lines(img, rgb_img):
dst = cv2.Canny(img, config.canny_min_threshold, config.canny_max_threshold)
cdstP = np.copy(rgb_img)
lines = cv2.HoughLinesP(dst, 1, np.pi / 180, 150, None, 0, 0)
lines1 = lines[:, 0, :]
for x1, y1, x2, y2 in lines1[:]:
cv2.line(cdstP, (x1, y1), (x2, y2), (255, 0, 0), 5)
return cdstP
if __name__ == "__main__":
bgr_img = cv2.imread('DJI_0009.JPG')
bgr_img = cv2.resize(bgr_img, (0, 0), bgr_img, config.scale, config.scale)
rgb_img = cv2.cvtColor(bgr_img, cv2.COLOR_BGR2RGB)
gray_img = cv2.cvtColor(bgr_img, cv2.COLOR_BGR2GRAY)
# _, threshold = cv2.threshold(gray_img, config.min_threshold, config.max_threshold, cv2.THRESH_BINARY)
# laplacian = cv2.Laplacian(rgb_img, cv2.CV_8UC1)
sobelx = cv2.Sobel(gray_img, cv2.CV_8UC1, 1, 0)
sobely = cv2.Sobel(gray_img, cv2.CV_8UC1, 0, 1)
blended = cv2.addWeighted(src1=sobelx, alpha=0.5, src2=sobely, beta=0.5, gamma=0)
_, threshold = cv2.threshold(blended, config.min_threshold, config.max_threshold,
cv2.THRESH_BINARY | cv2.THRESH_OTSU)
p1 = find_lines(threshold, rgb_img)
p2 = find_lines(blended, rgb_img)
p3 = find_lines(gray_img, rgb_img)
plots = [rgb_img, p1, p2, p3]
cmaps = [None] + ['gray'] * (len(plots) - 1)
img_show(plots, cmaps)
文件时,我曾经遇到过这个问题
.env
代替
AWS_CREDENTIALS:foo