Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Miko Suria
    it uses docker-compose, so yes
    Well, I had used it back in time (before going to kubernetes) and had several php-fpm sites running in it. So it works
    (docker-compose that is, and I set these up myself).
    Miko Suria
    hmm ok...
    I've been getting this "bad format for add-host" error everytime I try to create a container
    on docker for desktop (Mac)
    Well, no. There I can't really help. 100% linuxer here. no Mac, No windows. All linux workstations.
    Miko Suria
    thanks anyway :D

    Hi all, I have a very bad problem with docker and it made me mad. my Dockerfile can not read the .env file.

    my repo simulate it: https://github.com/nodejsdeveloperskh/docker/tree/docker-compose/docker-compose-files/mongodb-dockerfile-compose

    @all this i have hard times with docker. please help me :sob:

    Salathiel Genèse
    If you want .env from your host to your image, do COPY .env /path/to/target
    Or ADD .env /path/to/target
    If you have .env and rely on docker-compose for loading the .env file...
    First, note that you won't have them as ARG (i.e during image build), only at container run time

    If you have .env and rely on docker-compose for loading the .env file...

    I have it. but Dockerfile can not read the defined envs from it automatically.

    Salathiel Genèse
    Second, with Docker Compose, except you are using env_file option, you will have to map/substitute your environment variables manually...
        - ENV_VAR=${ENV_VAR}
    28 replies
    Last but not least, you may want to consider volumes... Even more so if you excluded .env in .dockerignore
    When having a .env file, you need to load its content into your shell/console-environment
    With JS (NodeJS) app, I use the env-cmd package from NPM
    Salathiel Genèse
    With C#/.NET, I use dotenv
    I don't use .env with Java as I most use Java with Spring which has has properties files and little different ways of handling conf
    But the idea is that
    Having a .env in your container won't automatically make its content available as environment variables
    Is your container UNIX-based ? Consider source .env in your entrypoint, before running your command to actually do the job
    Miguel Leite
    Hey all! quick question: I am trying to create a customized docker image from this dockerfile which is created from this one. In my own dockerfile, I want to override the python version that is installed.
    Shouldn't this suffice? What am I getting wrong?
    FROM jupyter/minimal-notebook:${PYTHON_VERSION}
    Hunter Morris
    Considering some immutable infrastructure with a Linux host running docker. Is it safe to persist /var/lib/docker somewhere and start with a fresh OS image and /var/lib/docker mounted from previous runs?
    heya, I changed my docker password (as special characters was messing with knative repo pull capability) but ever since none of my other images can pull.. I tried docker logout and then docker login. logs out and back in fine but still this error {{Warning Failed 9s (x2 over 23s) kubelet Failed to pull image "MYUSER/MYREPO:MYIMAGE": rpc error: code = Unknown desc = Error response from daemon: pull access denied for tesfra/test, repository does not exist or may require 'docker login': denied: requested access to the resource is denied}} however docker pull MYUSER/MYREPO:MYIMAGE works very confused any advice?
    Eduardo Reis Nobre
    Hi Guys,
    I'm setting up Laravel + Vue with nginx and everything on docker... 95% is working, the only thing left is the hot-reload portion that is run on a node container.
    I'm having trouble accessing the port 3000 that I've set up for my webserver.
    The port is bound correctly on my machine, It shows as being used, but the app.js and app.css files are not being served correctly.
    Could someone lend me a hand?
    9 replies
    Eduardo Reis Nobre
    Had some progress... The problem is that my node container only whats to serve the files if my host is
    Daniel Nordberg
    If someone gains root access to a server does that render docker secrets moot? How can I prevent someone with root access from entering a container and inspecting /run/secrets?
    2 replies
    hello guys, do you know any official phpunit docker image in the hub, I can't find one
    and if there is no official image then how to make one image of my own
    is there any guide for that?
    Mohit Sharma

    Hi guys, can any provide any support or comment on this? In my Jenkins, it fails intermittently

    unable to stream build output: failed to export image: failed to set parent sha256:c2c2a309ef34e311329b59de44153b7758d5d8f89812522d7aa64fa8edfc5432: unknown parent image ID sha256:c2c2a309ef34e311329b59de44153b7758d5d8f89812522d7aa64fa8edfc5432. Please fix the Dockerfile and try again..

    Any idea on this? Why it is happening?

    Hello everyone. I'm running a docker-compose where I have two containers: Container A is an angular project running with a ng serve --port 4300 and container B runs end to end tests hitting container A. Container B tries to reach http://A:4300 but it can't. By the way, I have created a bridge network in docker compose between both services. Anyone can help me with this problem, please? I appreciate any kind of help!