We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一些基础镜像unbuntu、centos都是默认缺省bash命令,如果是以 -d模式启动的话,bash会退出,导致docker认为container已经结束退出。
unbuntu
centos
-d
-t
presudo-tty
bash
docker run -t -d centos ${image}
docker run -d centos ${image} tail -f /dev/null
The text was updated successfully, but these errors were encountered:
No branches or pull requests
一些基础镜像
unbuntu
、centos
都是默认缺省bash命令,如果是以-d
模式启动的话,bash会退出,导致docker认为container已经结束退出。解决方式
-t
,可以docker有自己的presudo-tty
,让bash
等在那里。docker run -t -d centos ${image}
docker run -d centos ${image} tail -f /dev/null
The text was updated successfully, but these errors were encountered: