Category : entry-point

I got this error bin/entrypoint:6:in `require’: cannot load such file — pg (LoadError) when I run docker-compose up, can anyone help? Thanks bin/entrypoint #!/usr/bin/env ruby # frozen_string_literal: true require ‘timeout’ require ‘bundler/setup’ require ‘pg’ … docker-compose services: traefik: image: traefik:v2.2 command: – "–providers.docker=true" – "–entrypoints.web.address=:9000" ports: – "9000:9000" volumes: – "/var/run/docker.sock:/var/run/docker.sock:ro" depends_on: – etm postgres: ..

Read more

I’m trying to understand a discrepancy between ENTRYPOINT in Dockerfile and docker run –entrypoint. The exec form of ENTRYPOINT allows multiple parameters, # Source: https://docs.docker.com/engine/reference/builder/#entrypoint ENTRYPOINT ["executable", "param1", "param2"] but docker run –entrypoint=executable accepts only one. Many examples show how to override ENTRYPOINT with arguments, but they do so by also specifying CMD: docker run ..

Read more

I have a docker file: from ubuntu I’ve build it with: docker image build –tag my-ubuntu . I have a container out of that: docker container create –interactive –tty –name my-ubuntu my-ubuntu I can start and execute some commands: (bash is default) docker start –interactive my-ubuntu I can see output of commands. Now I want ..

Read more

Dockerfile FROM python:3.7.4-alpine ENV PYTHONUNBUFFERED 1 ENV PYTHONDONTWRITEBYTECODE 1 ENV LANG C.UTF-8 MAINTAINER "[email protected]" RUN apk update && apk add postgresql-dev gcc musl-dev RUN apk –update add build-base jpeg-dev zlib-dev RUN pip install –upgrade setuptools pip RUN mkdir /code WORKDIR /code COPY requirements.txt /code/ RUN pip install -r requirements.txt COPY . /code/ #CMD ["gunicorn", "–log-level=DEBUG", ..

Read more

I am trying to run the following script from docker (based on alpine image) #!/bin/sh echo “test” export USERNAME=”AQICAHj456mvH8iSJofL46Xtr7KP6Ng3Vn5k6BpZbkAAAAZTBjBgkqhkiG9w0BBwagVjBUAgEAME8GCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMwCm8C+wSLRm/+sSuAgEQgCJHCFbrIwCQuH0x2iGp13j9SuxMtfrcE6c4SmrHRVkkX24f” export AWS_REGION=”us-east-1″ echo “$AWS_REGION” decrypt=$(aws kms decrypt –ciphertext-blob fileb://<(echo “$USERNAME” | base64 -d)) export $key=”$(echo $decrypt | jq .Plaintext -r | base64 -d)” exec “[email protected]” I am getting the below output test us-east-1 /bin/entrypoint.sh: line 9: ..

Read more

I’m learning docker and here is part of the docker-compose.yml file for a project that I’m learning from: services: … … redis: build: ./redis image: smartjoe:redis container_name: smartjoe–redis command: redis-server ports: – ‘9993:6379’ volumes: – /redis volumes_from: – data data: build: ./data image: smartjoe:data container_name: smartjoe–data volumes: – /data – /var/lib/mysql – /var/lib/redis/data command: tail ..

Read more