All Questions
582
questions
78
votes
7
answers
69k
views
How does docker compare to openshift?
Docker and OpenShift are both frameworks to implement a PaaS service.
How do they compare in architecture and features?
30
votes
8
answers
54k
views
Openshift Nginx permission problem [nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)]
I am currently running into a problem trying to set up nginx:alpine in Openshift.
My build runs just fine but I am not able to deploy with permission being denied with the following error
2019/01/25 ...
25
votes
2
answers
55k
views
Vite: Could not resolve entry module (index.html)
I am new to Openshift 3.11 deployment, I created a Multistage Dockerfile for a React application, the build want correctly on my local machine, but when I run on the openshift cluster I get the error ...
24
votes
3
answers
8k
views
What is the benefit of putting multiple containers in a pod?
What's the benefit of having multiple containers in a pod versus having standalone containers?
20
votes
1
answer
12k
views
Openshift v3 - update image stream to fetch changes from external docker registry
I'm seeming to run into a simple problem and have the feeling I'm missing something essential.
I'm having a private docker image registry at our company, which hosts all the docker images we develop.
...
19
votes
5
answers
39k
views
permission denied, mkdir in container on openshift
I have a container with nodejs and pm2 as start command and on OpenShift i get this error on startup:
Error: EACCES: permission denied, mkdir '/.pm2'
I tried same image on a Marathon hoster and it ...
12
votes
3
answers
29k
views
Environment variable in PHP-docker container
I want to show an env var in my docker container.
The PHP script looks like this:
<html>
<head>
<title>Show Use of environment variables</title>
</head>
<body>...
11
votes
4
answers
23k
views
How do I change the permissions in openshift container platform?
I am new to Openshift.
I have deployed an application in openshift. When I checked the logs, there is permission denied error for some files.
Now, I want to change the permissions on the the ...
11
votes
3
answers
17k
views
How do you run an Openshift Docker container as something besides root?
I'm currently running Openshift, but I am running into a problem when I try to build/deploy my custom Docker container. The container works properly on my local machine, but once it gets built in ...
10
votes
2
answers
28k
views
"Peer's certificate issuer has been marked as not trusted by the user" in Openshift3
If S2I - "Source-to-image" resource in Openshift3 tries to connect to a TLS Gitlab repository shows the following message: "Peer's certificate issuer has been marked as not trusted by the user".
How ...
10
votes
3
answers
41k
views
chown: changing ownership of '/var/lib/mysql/': Operation not permitted
I am trying to deploy a mariadb image on openshift origin. I am using mariadb:10.2.12 in my docker file. It works ok on local but I get following error when I try to deploy on openshift origin.
...
9
votes
1
answer
15k
views
How do you remove the deploymentConfig, image streams, etc using Openshift OC?
After creating a new app using oc new-app location/nameofapp, many things are created: a deploymentConfig, an imagestream, a service, etc. I know you can run oc delete <label>. I would like to ...
9
votes
2
answers
8k
views
Running a docker image in Openshift Origin
I am very new to Openshift Origin. I am now trying out the possibility of deploying my docker containers in OpenShift origin.
For that I created a very simple docker container that adds two numbers ...
9
votes
2
answers
3k
views
Run MySQL a prefilled docker container as random (non-root) linux user?
I am trying to create an OpenShift compliant prefilled MySQL container image.
Running the container with a specified user is (sadly) not an option for us.
This is a problem since OpenShift simply ...
8
votes
1
answer
17k
views
How to use environment variables in init container args in kubernetes/openshift?
This is an excerpt of my deployment config:
...
spec:
containers:
- env:
- name: GIT_USERNAME
valueFrom:
secretKeyRef:
key: username
...
8
votes
2
answers
3k
views
Docker Inside Docker oom_score_adj: invalid argument
On Kubernetes, to build docker images, we use Docker Inside Docker (dind) where a docker daemon will be running as a privileged user
But some times times we have observed that the docker image ...
8
votes
2
answers
7k
views
Docker: Insert certificate into ketstore
I'm trying to add a certificate into $JAVA_HOME/jre/lib/security/cacerts truststore on my Dockerfile:
FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
RUN keytool -import -alias vault -storepass ...
7
votes
2
answers
7k
views
How to disable sticky sessions in Openshift3
If you scale up a Pod in Openshift3, all requests coming from the same client IP address are sent to container which has the session associated.
Is there any configuration to disable sticky sessions?...
7
votes
10
answers
48k
views
How to get the logs of a POD in openshift to local file
I have my spring boot application running on Openshift as container built using docker Image. I have enabled the logging in my application and prints all the logs.
Now i want to examine the log files ...
7
votes
2
answers
17k
views
how to modify pod memory limit of a running pod
I am using YML to create pod and have specified the resource request and limit. Now I am not aware of how to modify the resource limits of a running pod. For example
memory-demo.yml
apiVersion: v1
...
7
votes
2
answers
8k
views
Kubernetes - Readiness Probe execution after container started
Is there a way to prevent readiness probe from execution once container has successfully started? I suppose that liveness probe should be enough to monitor container health.
7
votes
1
answer
9k
views
Making an Oracle JDK docker image
I'm trying to create docker image for oracle JDK but the only image I can find is the open JDK. Our applications uses oracle JDK so it is mandatory to build oracle JDK docker images. My question is if ...
6
votes
2
answers
4k
views
Apache Spark standalone for Anonymous UID (Without user name)
I am starting Apache spark slave node on OpenShift platform. OpenShift internally start the docker image as an Anonymous user (User without name but just UID). I am getting following exception
17/07/...
6
votes
0
answers
2k
views
Openshift cannot connect to localhost during start [closed]
After installation OpenShift on Ubuntu 16.04 I try to run it and get error as below:
koziolek@koziolek-desktop ~ $ oc cluster up
Getting a Docker client ...
Checking if image openshift/origin-control-...
5
votes
1
answer
10k
views
How to allow image pull from one project to another in openshift?
I have created one project testing1 in which i published docker images.
Now, i want to created similar another project testing2 with same images that i pushed in testing1. I don’t want to publish ...
5
votes
4
answers
2k
views
OpenShift 3.1 - Prevent Docker from caching curl resource
I have this curl command in my Dockerfile:
RUN curl -H 'Cache-Control: no-cache' -f ${NEXUS_URL}${ARTIFACT_PATH}-${ARTIFACT_VERSION}.war?nocache=true -o $JBOSS_HOME/standalone/deployments/ROOT.war
...
5
votes
1
answer
3k
views
How to run a containerized streamlit app in a headless/noninteractive mode?
Streamlit server (run e.g. with streamlit run app-name.py) upon first run for each user requires interaction from her - accepting or rejecting this intro message:
Welcome to Streamlit!
If you are ...
5
votes
1
answer
11k
views
apache2: Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down
I am trying a very simple tutorial explaining how convert docker-compose to minishift ( Minishift and Kompose. I tried to converted and push the docker-compose.yml example
version: "2"
services:
...
5
votes
3
answers
4k
views
How to pass command line argument from oc start-build to dockerfile to set environment variable inside dockerfile
Used the below commands but the value for environment is not getting passed in Dockerfile.
Running these instances in oc container through groovy script:
oc start-build -e environment=ipte2 ipte2-...
5
votes
2
answers
4k
views
command terminated with non-zero exit code: Error executing in Docker Container: 137 (Mongo Manager)
Based on this guide:
https://docs.opsmanager.mongodb.com/current/tutorial/install-simple-test-deployment/
I am trying to run MongoDB and MongoDB Ops Manager in OpenShift. I have manged to dockerize ...
5
votes
1
answer
4k
views
Kubernetes - Indication of CPU limit less than available CPU
Objective
Clarify the behaviour of K8S container cpu usage when limit is set far below available CPU, and confirm if the understanding how to set limit is correct.
Background
I have a node of 2CPU, ...
5
votes
1
answer
2k
views
"oc new-app" does not expose port altough the input image does
I'm exploring OpenShift 3.9 and have managed to get a first container built and running with oc new-app and the Docker build strategy. My Dockerfile includes the command EXPOSE 5432.
After the ...
5
votes
1
answer
686
views
Running RStudio Server on Openshift Online
Openshift Online does not allow containers running processes as root for security reasons (see the corresponding question in their FAQ section). RStudio Server, on the other hand, requires root ...
4
votes
4
answers
6k
views
When running Spark on Kubernetes to access kerberized Hadoop cluster, how do you resolve a "SIMPLE authentication is not enabled" error on executors?
I'm trying to run Spark on Kubernetes, with the aim of processing data from a Kerberized Hadoop cluster. My application consists of simple SparkSQL transformations. While I'm able to run the process ...
4
votes
1
answer
686
views
expose Openshift Online docker registry
I am looking to push a custom docker image to OpenShift Online 3 to run container instances there. I have seen many instructions on forums / blogs about how to do this, but the first part of the ...
4
votes
3
answers
3k
views
Installing and Running docker in a Docker container running in Openshift
I am currently working on the following scenario
I am trying to setup a container in OpenShift that runs a Jenkins that is itsself able to run docker to make use of declarative pipelines where the ...
4
votes
1
answer
9k
views
Deploying Create React App on OpenShift: EACCES: permission denied, open '/home/node/app/.eslintcache'
I'm trying to deploy a Create React App webapp on OpenShift using a Dockerfile. The OpenShift build completes successfully and when I visit the route I'm able to see the application running for 1 ...
4
votes
4
answers
3k
views
Cypress (Electron) error on OpenShift "Failed to get 'appData' path" during End-to-end tests
I tried to run cypress end-to-end tests in OpenShift. Locally it works, but in OpenShift occurs an error after starting the tests via the cypress run command.
Error message in OpenShift
> kfuvo-...
4
votes
3
answers
11k
views
How to deploy apache server in openshift?
I want to deploy the apache server on openshift. My server is running well on my local, but when I deploy it on openshift , I encounter the following issue
(13)Permission denied: AH00072: make_sock: ...
4
votes
2
answers
6k
views
how to debug container images using openshift
Let's say I have a docker image created using a Dockerfile. At the time of writing the Dockerfile I had to test it repeatedly to realize what I did wrong. To debug a docker image I can simply run a ...
4
votes
2
answers
123
views
Windows Container PreStop Hook - Unable to Move Log Files to Volume
Trying to configure a PreStop Hook which should run a script in a windows container. Observed that the prestop hook is not executing the script in OpenShift Windows Container. This is a Powershell ...
4
votes
1
answer
2k
views
openshift online: Error on StartContainer - ErrImagePull: "unauthorized: authentication required"
I'm new to openshift and I have a showstopper:
On my Computer I created a Dockerimage called restservice and I successfully tested it:
docker run -d -p 8080:8080 restservice
Then I created an app ...
4
votes
1
answer
6k
views
Openshift missing permissions to create a file
The spring boot application is deployed on openshift 4. This application needs to create a file on the nfs-share.
The openshift container has configured a volume mount on the type NFS.
The container ...
4
votes
1
answer
4k
views
Recommended Container/POD CPU size for a SpringBoot and Vert.X application on OpenShift
We use OpenShift 3.6 as our Cloud PaaS, I'm testing out Spring Boot and Vert.X applications that connect to Couchbase Cluster. The default POD sizes that are available are 250millicore X 1 GB, ...
4
votes
1
answer
597
views
How to run Arangodb on Openshift?
While different database images are available for OpenShift Container Platform users as explained here, others including Arangodb is not yet available. I tried to install Arangodb official container ...
4
votes
1
answer
784
views
Any standard guidelines for choosing the USER ID and GROUP ID for Docker images in Dockerfile?
I normally used 1111 as user id and group id for my containers but when I deployed my application on OpenShift platform, I got error while scheduling of pods.
unable to validate against any security ...
3
votes
7
answers
13k
views
Minishift - cannot start - Error starting the VM: Error getting the state for host: machine does not exist
I ran Docker applications locally in an environment of Windows 10 Home, Oracle Virtualbox, The extension pack, Docker toolbox and Minishift.
Restarting after a few months, I get all kinds of errors. ...
3
votes
3
answers
7k
views
How to pass arguments to Docker container in Kubernetes or OpenShift through command line?
I have a bash script in a Docker image to which I can pass a command line argument through docker run (having specified the bash script in ENTRYPOINT and a default parameter in CMD like in this answer)...