dockersearch带tag标识

韵味老鸟 2024-06-11 14:56:07

一:docker search 带tag标识

#!/bin/sh # # Simple script that will display docker repository tags. # # Usage: # $ docker-search.sh centos for Repo in $* ; do curl -s -S "https://registry.hub.docker.com/v2/repositories/library/$Repo/tags/" | \ sed -e 's/,/,\n/g' -e 's/\[/\[\n/g' | \ grep '"name"' | \ awk -F\" '{print $4;}' | \ sort -fu | \ sed -e "s/^/${Repo}:/" done

二:docker 命令

从docker复制文件到宿主机

[root@ICP data]# docker cp ab6dc4c05277:/usr/share/nginx/html/js .

Successfully copied 6.242MB to /data/.

官网文件

chunk-5c885fb8.d07cffb7.js.map

[root@ICP data]# docker cp chunk-5c885fb8.d07cffb7.js.map ab6dc4c05277:/usr/share/nginx/html/js/chunk-5c885fb8.d07cffb7.js.map

Preparing to copy...

Copying to container - 0B

Copying to container - 0B

Copying to container - 512B

Copying to container - 32.77kB

Copying to container - 65.54kB

Copying to container - 98.3kB

Copying to container - 100.8kB

Copying to container - 100.9kB

Copying to container - 101.4kB

Copying to container - 101.9kB

Successfully copied 101.9kB to ab6dc4c05277:/usr/share/nginx/html/js/chunk-5c885fb8.d07cffb7.js.map

三:错误记录

Q1:docker network create meta

Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-588d7fe0a33c -j RETURN: iptables: No chain/target/match by that name.

0 阅读:16