Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    FreshRemote.work
    @FreshRemoteWork_twitter
    Oddball is hiring a DevOps Engineer - Remote, US - https://freshremote.work/job/120561-devops-engineer/
    ehsan
    @ehsandavari
    PRINCE KUMAR PASWAN
    @adreamyboy
    Hii, I am New Here
    PRINCE KUMAR PASWAN
    @adreamyboy
    Ryan Wamukota
    @Reptilefury
    sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'db' ([Errno 113] No route to host)")
    Getting this error when using docker compose to start my service and mysql
    edvordo
    @edvordo
    stupid question, but .. is your mysql service actually named db?
    JanneK
    @JanneKro
    Okay, so I am stumped. I have reduced my issue pretty much down to minimum. I can't simply reach the a container from outside the host.
    The simplest test is to take a simple Flask 'hello, world' example and run it in a container (it listens to port 5000) by default. If I run docker with '-p 8080:5000' on my computer, I can curl localhost:8080 just fine. I can also use my phone to access it outside the host. I can run the container on my NAS and it works as well.
    But if I do a similar exercise at work on a VM running Ubuntu Server, I just fail to at connecting to it. When I run it on the VM, I can 'curl localhost:8080' without issues. I can also curl using the ip and domain name of the VM without issues (from within the VM, I don't know if it's a test at all, really). But not from the outside. But I can effortlessly ssh to the VM, firewall is turned off. What's more, I can start the same flask example directly on the VM and I can access it outside the host. So it really doesn't seem to be a VM-related issue.
    JanneK
    @JanneKro
    For clarification, the Ubuntu Server running as VM is running on Hyper-V (Windows server). I have a hard time imagining how this is relevant IF I'm able to run a flask-server on the VM and access it without issues. But networking isn't my strong side.
    cherrie11
    @cherrie11:matrix.org
    [m]

    💨Don't miss your chance to be rich

    ✌️👍🙏DiscJockey is my name and I'm an admin with my own store link and group link https://t.me/+_kTifpKvc-kwNDJk

    This is my group link, you can check and prove my legal work there.

    🙏UPDATE My Services: Sell PayPal account verified – PayPal transfer Sell Bank Transfer – Bank Login Sell Clone card - Secure shipping tunnel cc Fullz sell and random Information – 99% valid cards Sell Dumps with pin track 1 and 2 101 201 Sell Western Union money transfer services Sell Gift Cards Itune – Amazon – Ebay Clone/Credit Cards Sell Booking airfare services – worldwide Sell e-carding services *SMTP - Pass Mail - PHP - Sell RDP !! Follow the Group Stage and contact me if you want to earn money! Let's make more bread! Obey the rules ! Whether you order it or buy it, get it instantly ✌️ Affiliate member required for a long-term business 🙏100%. 100% High Quality Good and Quality Castings+Pins 90% Approval

    TRANSFER SERVICE

    BTC/USDT/CASHAPP

    TN PRAYER PAYMENT

    PRAYER TO ARIZONA

    What MASS UI DUA has

    EDD RELOAD

    ALL GOVERNMENT PRAYER PAYMENTS

    METHOD IS AVAILABLE!!

    FULLZ

    PAYPAL

    CASH APPLICATION

    CASTINGS+PINS

    FULLZ + CASTINGS

    PAYPAL Transfer

    CashaPP transfer

    BANK LOG and bank deposits

    CASTING + P!N

    PRODUCT:%S

    CVV+SSN/D

    WU TRANSFER ♛

    SCAN ALL APPLES ♛

    Good sale QUALITY THINGS with a good product! With a large number of customers worldwide and also a Valid Reseller 🇺🇸

    BESTBUY TAP & SHARE WORKING BOXES

    VERIZON TAP & SHARE

    WALMART - TAP & Pay Bin's

    Amazon prime Tap and pay

    ••Cold random prices Random Boxes ••

    COUNTRIES ! Verizon - AMAZON DUMPS with pin

    AMAZON PART1-2

    Verizon- Track2- 1 Pin

    Walmart - Track1-2 Pin

    Postcode + PINs

    FULLZ + Ssn - details

    FULLZ - ​​Dob + Pins

    CV - Postal Code + ATM

    Those who are ready and willing to abide by the rules should message or contact me immediately! Telegram ✅https://t.me/DiscJockie

    Ryan Wamukota
    @Reptilefury
    sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "post" (172.22.0.2), port 5433 failed: No route to host

    stupid question, but .. is your mysql service actually named db?

    its a docker compose service name, mysql image

    edvordo
    @edvordo

    no, I get that, what I'm asking is whether you have something like this in your docker-compose.yaml

    services:
        db: # this is the service name from my question
            image: mysql:latest

    this is how it should be formed for the other services within the docker-compose.yaml file to be able to resolve/connect to the host .. I only asked since have used db in your original message, as the connection host and the error message was, that the host was not resolvable ..

    Ryan Wamukota
    @Reptilefury
    yes that's my config
    sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'data' ([Errno 111] Connection refused)")
    edvordo
    @edvordo
    well, it seems it wasn't named db, but data, as now the host resolves, just refuses connection .. you got a different error message, you can go debug that one now :)
    Mar Lab
    @marlab_gitlab
    Hi all,
    Since 2021 Docker is limiting the number of pull requests (200/6h for the authenticated user).
    Is there anything an individual non-commercial user can do to be able to experiment with Docker freely without being restricted by this limit?
    I mean like configuring an alternative repository for pull requests which doesn't exhibit similar limitations and mirrors images from the public Docker hub
    Ideally if the alternative repository doesn't have all the images we should be able to transparently fallback to the public Docker hub to download a couple missing images.
    I've seen some articles about pull through cache registry but it's not clear for me if this is actually an external mirror served by some 3rd party or it must be setup locally and will not really help an individual user since local docker installation will cache downloaded images anyway.
    I.e. pull through cache registry is a solution for environments with multiple hosts using the same cached images.
    So configuring pull through cache registry for single user would be waste of time without any benefit.
    5 replies
    mrokita (Michał Rokita)
    @mrokita:matrix.org
    [m]
    Hi! I'm trying to move to Docker Compose v2 and I have this weird issue:
    ❯❯❯ sudo docker compose up --build                                                           ✘ 130 master ✱
    1 error(s) decoding:
    
    * error decoding 'Entrypoint': invalid command line string
    It looks like it doesnt support normal braces under both command and entrypoint, I have no idea why
    This effectively disallows me to use Traefik's label constraints, like the following: --providers.docker.constraints=Label(pycon.traefik, true)
    if I remove the braces - both ( and ), everything starts
    but traefik doesn't understand the syntax if I do so :)))
    The only workaround to run traefik with this flag that I can think of is using the old, Python based docker-compose, or creating a custom dockerfile for the Traefik service, but this would be very ugly.
    edvordo
    @edvordo
    traefik docs suggest using backticks, as in
    providers:
      docker:
        constraints: "Label(`a.label.name`,`foo`)"
    mrokita (Michał Rokita)
    @mrokita:matrix.org
    [m]
    It's not about the backticks
    but you're right, I removed them in the process of troubleshooting
    notice the single 'quotes' around the prioviders.docker.constraints argument
    edvordo
    @edvordo
    good job figuring that out .. I was going to suggest trying a flag, I think --compatible or --compatibility, to see if that would works for command line options, but I'm guessing it wouldn't as it's a shellwords thing ..
    mrokita (Michał Rokita)
    @mrokita:matrix.org
    [m]
    thank you for trying to help me though!
    yeah it's a sad thing that this kind of issue is there for more than a year
    Maybe I'll try to write a PR but I don't have really have the time required to learn Go right now so it can take some time
    edvordo
    @edvordo
    I'm not saying I've done a deep dive into docker, but I've never seen what you were doing, so I'm inclined to believe it's not very common thing to do .. that GH issue kind of supports that .. but yea, I get what you mean ..
    Nicholas Wong
    @nicholaswkc34
    Hi All, i have an issues here, whe i do docker pull on Win 10, the connection speed is fast but when i do docker pull on Almalinx 9.2, the connection slow and error displayed saying your browser request timeout, I tried the tridcks provided in the docket forum - Like add resolv.conf nameserver and add proxy. but it doesn't help. Any one has clue about this?
    JanneK
    @JanneKro
    I'm really struggling with getting ENTRYPOINT / CMD right here. I need to start a powershell-script (to start sshd) when the container comes up, and that all connections default to a cmd.exe prompt. Not sure what is going on. I either launch to a cmd, but the sshd-service is not up, or I launch to a powershell-prompt with sshd-service on.
    (The problem is that when I use docker-plugin in jenkins, whatever script it runs, it seems to expect batch, not powershell)
    edvordo
    @edvordo
    I had a similar problem like a month ago, although I was not working with a windows image (assumption, from .exe / powershell) but a linux one .. I resigned after few hours, added supervisor, which starts and keeps sshd alive and entrypoint was bash ..
    JanneK
    @JanneKro
    @edvordo I guess the only issue in linux would be that one doesn't make sure that the process is kept alive after execution. But with Windows, I can never understand what is going on
    JanneK
    @JanneKro

    This doesn't work:
    CMD ["powershell.exe", "-NoExit", "-Command", "& C:/ProgramData/Jenkins/setup-sshd.ps1"]
    ENTRYPOINT ["cmd.exe"]

    It starts in 'cmd', but the sshd isn't running (the script does, at the end 'start-service sshd' and a 'tail' of sorts on a log file not to return)

    The notation (comma separated fields) is also a mystery to me, so I don't know how to do a simple test like :
    cmd -c "powershell C:/ProgramData/Jenkins/setup-sshd.ps1" && cmd either (CMD or ENTRYPOINT.. )
    JanneK
    @JanneKro
    ENTRYPOINT ["powershell.exe", "-NoExit", "start-service", "sshd"] works, but it'll land in powershell, not cmd (obviously).
    edvordo
    @edvordo
    I'd suggest to build your image in a way you can attach to it using docker and then try running the powershell command .. it crashes somewhere, since, as you said, it isn't kept alive, so you need to figure out why ..
    JanneK
    @JanneKro
    @edvordo I can always attach to it. It never crashes
    3 replies
    HB
    @hashborgir:mozilla.org
    [m]
    Wow. No one's said anything in a year.
    edvordo
    @edvordo
    ^ dude living in the future, 3 weeks ahead of us all