1. 当前位置:网站首页 > 

docker记录


命令:

镜像启动映射端口加加载目录docker run -it --name oracle -p 1521:1521 -v /home/docker:/mnt joinwe/oracle

1、service docker start(开启docker服务)

2、docker start containerID(启动已有容器)

3、docker exec -it oracle bash(进入su用户)

4、docker exec -it oracle sudo -u oracle -i bash(进入oracle用户)

5、docker cp <containerId>:/file/path/within/container /host/path/target


本文最后更新于2016-11-4,已超过 3个月没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
版权说明

本文地址:https://www.chensj.net/?post=54
未标注转载均为本站远程,转载请注明文章出处:

联系我们

在线咨询:点击这里给我发消息

微信号:chensj923

工作日:9:00-23:00,节假日休息

扫码关注