Docker数据卷挂载相关
挂载的时候,类似于linux u盘插入的操作,宿主机目录会被复制进去。 命令启动挂载 挂载本地目录 必须写绝对路径 [root@warship ~]# docker run -itd -v ./nginx:/etc/nginx --name nginx4 nginx:latest docker: Error response from daemon: create ./nginx: ./nginx includes invalid characters for a local volume name, only [a-zA-Z0-9][a-zA-Z0-9_.-] are allow
用户评论