cannot reach github.com when I build with it?
                  
                  
                  
                  
                  
                  FROM node:20-alpine as base
                  
                  
                  # Prepare dumb-init
                  
                  
                  # RUN apk update && apk add --no-cache dumb-init
                  
                  
                  RUN wget -O /usr/local/bin/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64"
                  
                  
                  RUN chmod +x /usr/local/bin/dumb-init
                  
                  
                  WORKDIR /usr/src/app
                  
                  
                  
                  
                  
                  It failed with
                  
                  
                  wget: unable to resolve host address 'github.com'
                  
                  
                  Outside of docker I can reach it.
                  
                  
                  nslookup github.com works
                  
                  
                
Стикер
 Jacob
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          Jacob
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  docker compose build --no-cache This command failed. The nslookup works when I run it in the Linux host
Обсуждают сегодня