我是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
命令,它可以工作,但这是正确的吗?也许你可以告诉我其他方法.