Category: Docker

Docker Technology Fans

Dockerize angular-cli 4 project fails while trying to run “ng build –aot –prod”

I am trying to dockerize my angular-cli projectwith the following docker file: I did followed the steps from: —- DOCKER FILE —— FROM nginx:1.13-alpine ENV APP_PATH /app ENV PATH $APP_PATH/node_modules/@angular/cli/bin/:$PATH RUN apk add –update –no-cache nodejs && mkdir $APP_PATH && rm -rf /etc/nginx/conf.d/* WORKDIR $APP_PATH COPY . . COPY nginx/default.conf /etc/nginx/conf.d/ ARG NPM_TOKEN COPY […]

UDP packets aren't forwarded to Node Application inside of docker container

I have a docker container on my desktop that I can send udp packets to directly via the docker machines IP address {1}. However, when I attempt to go to another computer and send the same request to my machine via {2} (i observe via wireshark that the udp packet is received) the packet is […]

gitlab-ci-multi-runner 9.2.0: ERROR: Job failed: exit code 252

I am running my tests inside a docker image on a docker gitlab executor. The logs are looking like this: Running with gitlab-ci-multi-runner 9.2.0 . . <after_script called> ERROR: Job failed: exit code 252 The last thing I am doing in my job script (shell) is a call to mongo eval My after_script for this […]

Connecting zeppelin docker with hive

Hi I am quite new to dockers and zeppelin. I have recently created a docker for zeppelin from this link. I am trying to connect with hive on a zeppelin notebook via the HiveContext. From the interpreters page spark has zeppelin.spark.useHiveContext is set to true. When I try the following code: val sqlContext = new […]

What are the advantages of running jenkins in a docker container

I’ve found quite a few blogs on how to run your jenkins in docker but none really explain the advantages of doing it. These are the only reasons I found ( : 1) I want most of the configuration for the server to be under version control. 2) I want the ability to run the […]

Docker Cloud WordPress stack workflow optimization

I am developping a WordPress with the Sage theme (v9 – master) which uses npm and composer as dependecy management. I am trying to achieve a stack that I can simply pull and run locally and have the same environment as my production Docker Cloud (I wont cover the docker-compose part, only the Docker Cloud […]

How to persist data in a Docker .NET Core Web app?

I have trouble understanding how to work with data in a WebApi-app running with Docker. In my app, a user can upload files which are stored like this: ~\App_Data\accounts\user123\files\<sha256>.bin Without configuring any volumes, a Docker container with my app-image seem to work fine and writes files without any problems. Now I’d like to configure so […]

How does a remote server with docker images know when to pull a new image built with a CI tool?

We have been moving our project to automated deployments recently. For the past few days I have configured our docker containers to communicate with each other using docker-compose. Now we are moving everything to Gitlab CI, that builds the application image on a push. However, Im stuck on a conceptual part of the flow. How […]

initdb: could not change permissions of directory on Postgresql container

I am new to the docker ecosystem and I am trying to spin up a simple postgres container along with a volume so it persists its data, by using a yaml composer file. The file is as follows: # Use postgres/example user/password credentials version: ‘3.3’ services: db: image: postgres environment: POSTGRES_DB: recrow POSTGRES_USER: recrow POSTGRES_PASSWORD: […]

dockerize a Rails app, error Postgres

I’m trying to dockerize a Rails app. The problem I get is that I get this error: PG::ConnectionBad: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”? The docker container that holds the Postgres(running btw): 3e11664277b3 postgres:9.6.1 “/docker-entrypoint.s” 2 days ago […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.