Comments (4)
I keep encountering failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "sh": executable file not found in $PATH: unknown
With my docker file looking like:
FROM hyness/spring-cloud-config-server
# COPY ./application-gitlab.yml /opt/spring-cloud-config-server/application.yml
WORKDIR /config
COPY ./configentry.sh /opt/spring-cloud-config-server/configentry.sh
COPY ./application.properties /opt/spring-cloud-config-server/application.properties
COPY ./application.properties /config
ARG SPRING_CLOUD_CONFIG_SERVER_GIT_USERNAME
ARG SPRING_CLOUD_CONFIG_SERVER_GIT_PASSWORD
ARG SERVER_PORT
ARG MANAGEMENT_SERVER_PORT
ENV SPRING_CLOUD_CONFIG_SERVER_GIT_USERNAME ${SPRING_CLOUD_CONFIG_SERVER_GIT_USERNAME}
ENV SPRING_CLOUD_CONFIG_SERVER_GIT_PASSWORD ${SPRING_CLOUD_CONFIG_SERVER_GIT_PASSWORD}
ENV SERVER_PORT ${SERVER_PORT}
ENV MANAGEMENT_SERVER_PORT ${MANAGEMENT_SERVER_PORT}
EXPOSE 4001
ENTRYPOINT ["sh", "/opt/spring-cloud-config-server/configentry.sh"]
from spring-cloud-config-server.
Issues are for reporting bugs, requesting new features, not for asking questions about unrelated frameworks like Kubernetes (since you are referring to a pod) or your customization of this image. I’m not sure why you thought opening an issue was easier than a Google search, but none of what you’re asking about is supported by this project. Feel free to ask questions in the discussions section after doing some research on your own
from spring-cloud-config-server.
Hi, I've done plenty of research. I'm mainly concerned as when trying to run the hyness/cspring-cloud-config-server image you used to be able to get a shell by running docker exec -it [image-id] /bin/sh
to examine the contents of the container. This is no longer the case in later images. We were able to do this previously in hyness/spring-cloud-config-server@sha256:d75904c7b9bb7cc72e08244f78cb3c1ea8ce87fc9fa1b2f2099c172575d24dfa
.
Generally you can run docker inspect [container-id]
and examine the cmd
property to see what shells it supports - however in this case their are none.
from spring-cloud-config-server.
This project leverages Spring Boot’s built in support for building OCI images with Cloud Native Buildpacks. It’s effectively a distroless container, which is why you no longer see the /bin/sh process. This container is a lot more secure than the original docker builds we used to release, but one of the drawbacks is you cannot exec into the container any more. More and more projects are starting to build containers like this either with Spring Boot or using Google’s distroless base image or Gib.
I’ve seen you’ve already forked the project, so you can import the Dockerfile from the 3.0 branch and attempt to get that to build with the current version of the code. It should work with the current code on main. The project has no plans to go back to docker builds. Hope this helps
from spring-cloud-config-server.
Related Issues (20)
- Please update documentation for using mounted .ssh volumes HOT 1
- Build and publish an ARM variant of the docker image HOT 6
- Doesn't clear how to use health check HOT 1
- /encrypt endpoint returns 401 HOT 1
- Basic Auth and /encrypt /decrypt endpoints don't work HOT 1
- Add ability to define a docker healthcheck HOT 6
- JRE builds are actually JDK builds
- Use Spring Boot to create OCI images HOT 1
- log4shell issue HOT 1
- Add AWS Secrets Manager support
- Deploy scripts are not using the correct builder
- "created date" in dockerhub images is 42 years ago HOT 1
- Move integration tests to Spring Boot / Kotlin HOT 1
- SPRING_SECURITY_USER_PASSWORD is not working HOT 1
- Reading the configuration via GCP Secret Manager does not work when running this image as Cloud Run Service HOT 2
- Update on AWS Credentials Provider SDK HOT 1
- The docker image hyness/spring-cloud-config-server:3.0-jdk8 no longer works HOT 1
- Update to eclipse-temurin image on 3.0 build HOT 1
- Cannot assume AWS role due to missing sts library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-config-server.