3 回答
TA贡献1765条经验 获得超5个赞
/bin/sh -c
docker run -i -t ubuntu bash
/bin/sh -c
ubuntu
bash
.
/bin/sh -c bash
RUN
ENTRYPOINT
--entrypoint
ubuntu
CMD
docker run -i -t ubuntu <cmd>
. <cmd>
docker run -i -t ubuntu
CMD ["bash"]
["/bin/cat"]
docker run img /etc/passwd
/etc/passwd
/bin/cat /etc/passwd
.
docker run redisimg redis -H something -u toto get key
ENTRYPOINT ["redis", "-H", "something", "-u", "toto"]
docker run redisimg get key
.
添加回答
举报