Category : docker

I can’t connect mysql of docker, but can connect mysql inside centos, i almost tried all method that i can find but fail to solve the problem, Meanwhile, i can’t connect redis inside docker, if some docker setting is wrong? CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3a345949f38a redis "docker-entrypoint.s鈥? 20 hours ago Up ..

Read more

I am trying to to run an entrypoint script via docker-compose file. And im getting permission denied error while trying to edit a configuration while. I have tried with root user as well with no luck. Following is my code. Please suggest. Dockerfile FROM centos:7 AS ingestbase RUN mkdir -p ${USER_HOME}/certs ${USER_HOME}/logs COPY config/* ${USER_HOME}/ ..

Read more

I am using Docker version 20.10.7 and building below mentioned docker file: FROM maven:3.6.3-adoptopenjdk-11 COPY ./ ./ RUN addgroup –gid 900–system gtest RUN adduser –uid 9000–system –disabled-password –gecos "" –shell /bin/sh –ingroup gtest utest; RUN chmod 777 /etc/hosts USER 9000 ENTRYPOINT ["./start.sh"] Docker builds throws: #13 0.368 chmod: changing permissions of ‘/etc/hosts’: Read-only file system ..

Read more

I have written a springboot thymeleaf application and i haved pushed it to GitLab. I want to generate jar from GitLab and store in a respoistory. To do this i m using below plugins <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-1</version> <configuration> <descriptors> <descriptor>src/main/resources/distribution/Dynamic2Static-distribution.xml </descriptor> </descriptors> <finalName>Dynamic2Static-${project.version}</finalName> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> ..

Read more

I have been trying to deploy a docker django postgresql application. docker-compose.prod.yml … services: web: build: context: . dockerfile: Dockerfile.prod restart: always container_name: web command: gunicorn django_app.wsgi:application –bind 0.0.0.0:80 volumes: – static_volume:/static – media_volume:/media expose: – 80 env_file: – ./.env.prod depends_on: – db db: image: postgres:13.4-alpine container_name: db volumes: – postgres_data:/var/lib/postgresql/data/ env_file: – ./.env.db … ..

Read more