Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    node.js.developers.kh
    @nodejsdeveloperskh

    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

    Pikachu
    @zengqua
    Hi guys, is there a good way to run a GUI application in a docker container? Windows、MacOS or Linux
    1 reply
    Salathiel Genèse
    @SalathielGenese
    No
    Docker isn't design around UI concerns
    Nonetheless, you can still run GUI through SSH just like you do on Linux - Linux machine
    That said, I did it only once, years ago (2014), with a friend, just for fun (I mean remote GUI access)
    So I know it is possible with Docker... And more than that, I can't say.
    And I'm not sure that's something desirable
    For containerized GUI, I may consider snap (by canonical) or QUEMU or KVM !? (They seem to address just that)
    I said seem, I may be wrong... Not 100% into those tools
    Miko Suria
    @jsuria
    hi
    I'm relatively new to docker used in warden...
    has anyone been having issues with creating a php-fpm container using warden env up?
    Haley
    @neo:shdw.fr
    [m]
    I don't even know what "warden" is :}
    Miko Suria
    @jsuria
    oh...it's a CLI tool that uses ("orchestrates") how docker creates containers
    Haley
    @neo:shdw.fr
    [m]
    Ah. Ok. like docker-compose .
    Miko Suria
    @jsuria
    it uses docker-compose, so yes
    Haley
    @neo:shdw.fr
    [m]
    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
    @jsuria
    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)
    Haley
    @neo:shdw.fr
    [m]
    Well, no. There I can't really help. 100% linuxer here. no Mac, No windows. All linux workstations.
    Miko Suria
    @jsuria
    oh
    thanks anyway :D
    node.js.developers.kh
    @nodejsdeveloperskh

    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
    @SalathielGenese
    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
    node.js.developers.kh
    @nodejsdeveloperskh

    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
    @SalathielGenese
    Second, with Docker Compose, except you are using env_file option, you will have to map/substitute your environment variables manually...
    services:
      postgres:
        environment:
        - 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
    @SalathielGenese
    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
    @MLobo1997
    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?
    ARG PYTHON_VERSION=3.8.12
    FROM jupyter/minimal-notebook:${PYTHON_VERSION}
    Hunter Morris
    @huntermorris:matrix.org
    [m]
    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?
    tes1000
    @tes1000
    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
    @reisnobre
    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
    @reisnobre
    Had some progress... The problem is that my node container only whats to serve the files if my host is 0.0.0.0
    Daniel Nordberg
    @dnordberg
    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
    gaurav
    @mgourab:matrix.org
    [m]
    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?