Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    FixFromDarkness Is ports in docker ps accessible from global network if I blocked them in ufw?
    FixFromDarkness Port from docker ps is closed for localhost! How can I fix it?
    Kobi Bar Hanin
    Hi! I’ve built an interactive git cli - igit. Check it out: https://github.com/kobibarhanin/igit to install: pip install igit
    mxvin ...
    I have installed VirtualBox but not able to run
    OS : ubuntu
    Command : docker-machine create default
    Error : Running pre-create checks...
    Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"
    Jamey Hart
    @sushant.co19_gitlab This sounds like the issue raised here: docker/machine#4590. The suggested fix appears to be to change the case of VBoxManage. Hope that helps.

    I am trying to fix this from the last 3 days and not able to fix
    Command------ docker run -ti -p -e POSTGRES_HOST_AUTH_METHOD=trust -e LC_COLLATE=en_US.UTF8 -e LC_CTYPE=en_US.UTF8 --rm postgres:11 -c log_statement=all

    Error------ docker: Error response from daemon: driver failed programming external connectivity on endpoint trusting_feistel (c76e7077bd6e012a2282670506334a0aef50695489dc20a1992e00e205f0954c): Error starting userland proxy: listen tcp bind: address already in use.

    OS: Ubuntu
    Haley something is using the port already.
    Davide Pugliese
    Has anyone got this issue:
    Does it mean we need to install it from binaries now?
    Davide Pugliese
    Josh Reynolds
    @sushant.co19_gitlab This means the port you are trying to bind to on your actual machine is either running a postgres locally or you already have a dockerized postgres running. you could try netstat -tanp to see what's listening on the port.
    thanks @jshreynolds . I solved it .

    I'm trying to run Docker inside Docker and mounting the /var/run/docker.sock socket. The socket gets the following permissions and ownership inside the container:

    srwxr-xr-x 1 root root 0 Nov  8 17:20 /var/run/docker.sock

    meaning it can't be accessed from inside the container with regular user privileges.
    What's the best way to resolve this?

    Tango Tan
    sudo chown root:youxxx /var/run/docker.sock
    youxxx -> docker
    try to do it...
    hmm. The socket is not there at container build time when I could still switch between root and regular user. The socket only available at container run time. And at that point the container is being run as a regular user.
    I could configure sudo at container build time to allow user X to run the command you suggested.
    Are there any other ways to tackle this?
    Can I e.g. specify permissions for individual mounts somehow when starting the container?
    I am facing performance issues with django +gunicorn+nginx
    I am getting 499 and 502 error
    100 Users is hitting one url at same time
    Anyone can help me
    I am using aws ebs t2.xlarge instance
    Roberto Di Lillo
    Hi Guys.
    I have a dockerized node api, and I'd like to add a cache layer with redis.
    I just completed the implementation within the node app but I'm realizing that this way the cache will be striclty linked with each container, is that right?
    What's the common practce? should i add a cache layer in a different container and configure the api image to connect to that container to check if the cache contains anything?
    alephu5 Both ways are just as easy; if you use docker-compose you can use the name of the redis service as the URL. The advantage of using two separate containers is that you can put the containers on separate nodes if you want.
    Hi guys, buildx is not geterating images. It’s not giving errors also.
    Command I used: docker buildx build --platform linux/amd64,linux/arm64 -t test-multi .
    WARN[0000] invalid non-bool value for BUILDX_NO_DEFAULT_LOAD:  
    WARN[0000] No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load 
    [+] Building 6.1s (15/15) FINISHED                                                                                                                                                                                                                            
     => [internal] load .dockerignore                                                                                                                                                                                                                        0.0s
     => => transferring context: 2B                                                                                                                                                                                                                          0.0s
     => [internal] load build definition from Dockerfile                                                                                                                                                                                                     0.0s
     => => transferring dockerfile: 32B                                                                                                                                                                                                                      0.0s
     => [linux/arm64 internal] load metadata for docker.io/phenompeople/centos-sunjre:JP                                                                                                                                                                     6.0s
     => [linux/amd64 internal] load metadata for docker.io/phenompeople/centos-sunjre:JP                                                                                                                                                                     6.0s
     => [linux/amd64 1/5] FROM docker.io/phenompeople/centos-sunjre:JP@sha256:b6aa25e541a6102b77fca769738d00027fa3cfd6f2ff15507c4846d3845d7fad                                                                                                               0.0s
     => => resolve docker.io/phenompeople/centos-sunjre:JP@sha256:b6aa25e541a6102b77fca769738d00027fa3cfd6f2ff15507c4846d3845d7fad                                                                                                                           0.0s
     => [internal] load build context                                                                                                                                                                                                                        0.0s
     => => transferring context: 148B                                                                                                                                                                                                                        0.0s
     => [linux/arm64 1/5] FROM docker.io/phenompeople/centos-sunjre:JP@sha256:b6aa25e541a6102b77fca769738d00027fa3cfd6f2ff15507c4846d3845d7fad                                                                                                               0.0s
     => => resolve docker.io/phenompeople/centos-sunjre:JP@sha256:b6aa25e541a6102b77fca769738d00027fa3cfd6f2ff15507c4846d3845d7fad                                                                                                                           0.0s
     => CACHED [linux/arm64 2/5] COPY target/test-1.0-SNAPSHOT.jar /opt/deployment/test/test-1.0-SNAPSHOT.jar                                                                                                                                       0.0s
     => CACHED [linux/arm64 3/5] COPY *-server.sh /opt/deployment/
    HI, i have just started learning Kubernates. My personal desktop configuration is low and it gets hanged after starting docker for desktop.
    in amazon ec2 all machines eligible for free-tier are only of 1 CPU.
    any suggestion, how can I have K8 labs to do practice ?
    Hi folks!!
    What are the advantages of running local source code in docker container using volume (like this: -v $(pwd)/app )?
    my take was -v $(pwd)/app leads to streaming of the folder in real time between machine (pwd) and docker (app folder)
    Hi the containers inside my docker-compose file are using their own network (or NOT network_mode = host). Is it still possible for them to connect to a server (eg database) that is on the hosts network (or external to the docker-compose network). If what does the config looklike, how do I get the containers in the compose to resolve the database hostname?
    Stefan Lörwald
    Is there a way to add nodes to the kubernetes cluster in docker-for-win?
    Haley Docker for windows? that exists???
    Haley But why would one want to run docker under windows. It is slow by default.
    Stefan Lörwald
    That's really not the point. Ad there are many good reasons. And it's not exactly slow by default. But thanks for establishing that you won't be helpful
    Haley no problem. Still don't see any use-case to run docker in windows...
    Stefan Lörwald
    And clearly you never did
    Haley Only windows Systems we have in this household are the Gaming Rigs. All other systems/servers/nas/mediacenter etc. run linux.
    Stefan Lörwald
    I get it. You do things differently. That doesn't help me at all with modifying the k8s cluster in docker-for-win
    Haley if you have a cluster k8s/cluster, all you need to do is get the token to connect a node, and connect the node to your master.
    Stefan Lörwald
    Sadly that doesn't help, because the tool docker-for-win creates the k8s cluster for the user. So you can interact with it using kubectl, but you don't run the cluster yourself, so I don't begin to know where to execute kubeadm