小编Mas*_*Tim的帖子

错误:x86_64 上的 docker buildx 用于构建多体系结构 - x86_64、arm64

buildx
我只是通过使用When running来制作 multiarch 图像docker buildx build --platform linux/amd64,linux/arm64 -t maskertim/zookeeper-demo .

错误信息

错误如下:

------
 > [linux/arm64 3/5] RUN curl "https://archive.apache.org/dist/kafka/2.8.0/kafka_2.13-2.8.0.tgz"    -o /tmp/kafka/kafka.tgz &&  mkdir /kafka && cd /kafka &&    tar -xzvf /tmp/kafka/kafka.tgz --strip 1:
#8 0.915   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#8 0.916                                  Dload  Upload   Total   Spent    Left  Speed
100 68.0M  100 68.0M    0     0   936k      0  0:01:14  0:01:14 --:--:-- 3475k
#8 75.45 tar: Child returned status 1
#8 75.45 tar: …
Run Code Online (Sandbox Code Playgroud)

tar docker buildx

7
推荐指数
1
解决办法
984
查看次数

为什么在这个方程中是 p/n?

在Introduction to the Design and Analysis of Algorithms一书中,它提供了该算法的伪代码并分析了其平均效率:

ALGORITHM SequentialSearch(A[0..n ? 1], K)
  //Searches for a given value in a given array by sequential   search 
  //Input: An array A[0..n ? 1] and a search key K
  //Output: The index of the ?rst element in A that matches K
  // or ?1 if there are no matching elements
  i ? 0
  while i < n and A[i] != K do
    i ? i + 1
  if i < n return i …
Run Code Online (Sandbox Code Playgroud)

algorithm average time-complexity

5
推荐指数
1
解决办法
117
查看次数

标签 统计

algorithm ×1

average ×1

buildx ×1

docker ×1

tar ×1

time-complexity ×1