about blog github

12 Sep 2019
docker命令tips

  • docker覆盖entrypoint
docker run --rm --entrypoint /bin/sh -it -d quay.io/cluster-api-provider-ibmcloud/clusterctl
  • 进入docker
docker exec -it 5ed19cf131d5 /bin/sh
  • 从docker中拷贝文件到本地
docker cp 5ed19cf131d5:/bin/clusterctl ./
  • 启动docker并执行命令
docker run --rm --entrypoint "" -v ${PWD}:/tmp  quay.io/cluster-api-provider-ibmcloud/clusterctl /bin/sh -c "cp /bin/clusterctl /tmp"

:) 未完待续……



LEo at 00:12

about blog github