有没有一种方法可以将工件从docker build输出到主机?
例如,给定以下Dockerfile,是否有一种获取文件log.log的方法?
FROM alpine:3.7 as base
RUN mkdir /log/
RUN touch /log/log.log
我使用COPY的尝试似乎只适用于从主机复制到码头映像:
FROM alpine:3.7 as base
RUN mkdir /log/
RUN touch /log/log.log
COPY ./foo.bar /log/
RUN ls -l /log/
COPY /log/log.log ./
$ touch ./foo.ba
我的docker构建可以在我的设备上运行。当我上传到digital-ocean服务器并执行"docker-compose up -d“命令时,除了”前端“,所有的容器都启动了。问题出在“卷”上,当我删除它时,一切都正常。如何解决这个问题?我需要这份财产保留下来。 frontend_1 | > test-docker@0.1.0 dev /app/client
frontend_1 | > next dev
frontend_1 |
frontend_1 | sh: 1: next: not found
frontend_1 | npm ERR! code ELIFECYC
我的基本需求是创建docker镜像并将其部署到docker注册表。 我在我的jenkins服务器中有一个预先配置好的应用程序文件夹(/home/myfolder)(为了完成这个配置,我使用了ansible脚本)。然后,我需要从该文件夹创建docker镜像,并将其部署到docker注册表。 做这件事最好的方法是什么?请帮我解决这个问题,因为我是码头新手。 请在下面找到我的Dockerfile #Download base image ubuntu 16.04
FROM ubuntu
WORKDIR /dockerprojects
#copy the zip file t