篇首语:本文由小编为大家整理,主要介绍了docker导入.tar报错:unknown shorthand flag: "i" in -itd相关的知识,希望对你有一定的参考价值。
如下,用docker import CentOS7-BaseImage.tar centos7 docker run -itd --name xx centos7:latest /bin/bash
导入失败
[root@localhost ky_share]# docker import CentOS7-BaseImage.tar centos7 docker run -itd --name xx centos7:latest /bin/bashunknown shorthand flag: "i" in -itdSee "docker import --help".[root@localhost ky_share]# [root@localhost ky_share]# docker import CentOS7-BaseImage.tarsha256:b402989725e84301aef890bdd6bde4345de558bf30e6c8589801fe7bda1133cc[root@localhost ky_share]# [root@localhost ky_share]# [root@localhost ky_share]# [root@localhost ky_share]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE<none> <none> b402989725e8 10 seconds ago 3.49GBubuntu latest d2e4e1f51132 3 weeks ago 77.8MBhello-world latest feb5d9fea6a5 7 months ago 13.3kB
然后把后面一串参数取消就好了。。
docker import CentOS7-BaseImage.tar
未解决。。
以上是关于docker导入.tar报错:unknown shorthand flag: "i" in -itd的主要内容,如果未能解决你的问题,请参考以下文章