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) 在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)