我是Docker的新手并尝试了一些事情.现在我想创建一个Dockerfile,它自动构建Oracle DB映像.
############################################################
# Dockerfile to build MongoDB container images
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu
FROM ubuntu
# File Author / Maintainer
MAINTAINER Example McAuthor
# Update the repository sources list
RUN apt-get update
################## BEGIN INSTALLATION #####################
CMD docker pull alexeiled/docker-oracle-xe-11g
Run Code Online (Sandbox Code Playgroud)
我的问题是docker pull
命令.
当我尝试使用该RUN
命令时,docker守护程序说,他找不到' docker
'.然后我使用CMD
命令,它可以工作,但这是正确的吗?也许你可以告诉我其他方法.
你不应该从Dockerfile中提取.
您只需使用以下命令启动Dockerfile即可:
FROM docker-oracle-xe-11g
Run Code Online (Sandbox Code Playgroud)
并在其中添加您在自己的Oracle映像中需要的任何Oracle配置文件.
该docker-oracle-xe-11g
Dockerfile已经基于Ubuntu.
FROM ubuntu:14.04.1
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4328 次 |
最近记录: |