Category : redhat-containers

I tried to install httpd inside docker container and tried to restart the httpd via systemctl in docker. But I’m getting a exception like below As per my analysis systemctl not enabled by default in docker base images, experts suggested to configure like below. FROM centos:7 ENV container docker RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in ..

Read more

Background: I am trying to perform a standard AWS Docker build. The problem is that I am running RHEL which only supports docker version 1.13 not 1.17. This results in the docker login command "–password-stdin" to not be available. My question: How do I login to AWS docker without using password-stdin. My environment: Red Hat ..

Read more

I’ve run into an issue with Docker and RedHat CentOs 7 while attempting to dockerize some rather old software. The steps to reproduce are: docker pull amd64/centos:7 docker run -it –privileged amd64/centos:7 bash [[email protected] /]# echo "net.ipv4.ip_local_reserved_ports = 49001-49053" > /etc/sysctl.conf [[email protected] /]# sysctl -q -p sysctl: cannot stat /proc/sys/net/ipv4/ip_local_reserved_ports: No such file or directory ..

Read more

I have redhat linux image for .net core 3.1 registry.redhat.io/dotnet/dotnet-31-runtime-rhel7:latest In docker file of my application i want to create an image without one if the inner reference package (sqlite) Is it possible to remove FROM registry.redhat.io/rhel8/dotnet-31-runtime:latest #RUN yum -y remove sqlite-libs WORKDIR /app COPY . . ENTRYPOINT ["dotnet", "MyApp.dll"] I have tried RUN yum ..

Read more

I have pulled my docker container form the Container Catalog registry.access.redhat.com/rhpam-7/rhpam72-kieserver-openshift and can override env variables using the Docker run -e command. But is there a way to build a bootstap config file and copy into the image ina Dockerfile? Where would I put it in the image so that the startup script would find ..

Read more