Search code examples
dockerdockerfilerhel

Dockerfile FROM for rhel images


I would like to create a Dockefile as below

FROM <rhel6/7>

# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN addgroup redis && useradd -g redis -ms /bin/bash redi

RUN mkdir /data && chown redis:redis /data
VOLUME /data
WORKDIR /data

# Copy the current directory contents into the container at /app
ADD . /data

# Run app.py when the container launches
CMD ["/usr/software/rats/bedrock/bin/python2.7", "/data/test_redis.py"]

what do i replace FROM <rhel6/7> with?


Solution

  • As per the official guide from the Red Hat

    FROM registry.access.redhat.com/rhel7/rhel
    

    References: