参考:http://dlgcy.com/docker-hub/
https://stackoverflow.com/questions/29535015/error-cannot-start-container-stat-bin-sh-no-such-file-or-directory
注册docker账户账号,然后就pull拉取所需版本fluent-bit 1.7.3
查看拉下来了没有
docker image ls
docker run :创建一个新的容器并运行一个命令
跑起来了
然后docker ps -a查看docker进程
一直进不了/bin/bash,然后看Stack Overflow上说的inspect一下
https://stackoverflow.com/questions/29535015/error-cannot-start-container-stat-bin-sh-no-such-file-or-directory
发现其cmd并没有/bin/bash
有多种方式进入docker容器中,比如attach等操作,具体如下https://www.huaweicloud.com/articles/fb5e0ec2fb15789860e80cfe97dfebd0.html
然后进入cmd的命令,如下
attach一下
提交commit一下,但是不喜欢名字,名字不对,改了一下,删除
修改后,然后push上去
最后结果,dockerhub成功显示







网友评论