JammUtkarsh opened a new issue, #7404:
URL: https://github.com/apache/trafficcontrol/issues/7404

   <!--
   ************ STOP!! ************
   If this issue identifies a security vulnerability, DO NOT submit it! 
Instead, contact
   the Apache Traffic Control Security Team at 
[email protected] and follow the
   guidelines at https://apache.org/security regarding vulnerability disclosure.
   
   - For *SUPPORT QUESTIONS*, use the #traffic-control channel on the ASF slack 
(https://s.apache.org/tc-slack-request)
   or the Traffic Control Users mailing list (send an email to 
[email protected] to subscribe).
   - Before submitting, please **SEARCH GITHUB** for a similar issue or PR
       * https://github.com/apache/trafficcontrol/issues
       * https://github.com/apache/trafficcontrol/pulls
   -->
   
   <!-- Do not submit security vulnerabilities or support requests here - see 
above -->
   ## This Improvement request (usability, performance, tech debt, etc.) 
affects these Traffic Control components:
   <!-- delete all those that don't apply -->
   - Dev 
   
   ## Current behavior:
   If Kubernetes is enabled on the system and a development environment is 
started from [dev/](https://github.com/apache/trafficcontrol/tree/master/dev) 
using `atc start`. There is a port conflict between traffic_ops container and 
Docker backend API.
   
   Terminal output:
   
   ```bash
   $ atc start                                                                  
                                     
   
   [+] Building 4.2s (45/45) FINISHED
   # ----Rest of the build and start process by docker----
    ⠿ Container trafficcontrol-db-1          Running                            
                                           0.0s
    ⠏ Container trafficcontrol-trafficops-1  Starting                           
                                          15.9s
   Error response from daemon: driver failed programming external connectivity 
on endpoint trafficcontrol-trafficops-1 
(b09986bf574a9ce0b85b3710d1df3274bb023cdc4300aafecde215a6bc261eca): listen tcp4 
0.0.0.0:6443: bind: address already in use
   
   $ lsof -i :6443
   COMMAND    PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
   com.docke 8172  utc  168u  IPv4 0x264940a1a6d323cd      0t0  TCP 
localhost:sun-sr-https (LISTEN)
   
   $ ps 8172
     PID   TT  STAT      TIME COMMAND
    8172   ??  S      7:07.94 
/Applications/Docker.app/Contents/MacOS/com.docker.backend -watchdog -native-api
   
   $
   ```
   
   ref: [Docker 
Blog](https://www.docker.com/blog/how-kubernetes-works-under-the-hood-with-docker-desktop/#:~:text=Port%206443%20is%20the%20default,installed%20directly%20on%20the%20host.)
   
   ## New behavior:
   <!-- Describe how this change would improve Traffic Control -->
   Change the port of Traffic_ops container.
   
   
   ## Steps to reproduce:
   <!-- If the current behavior is a bug, please provide the *STEPS TO 
REPRODUCE* and
   include the applicable TC version.
   -->
   1. Start Kubernetes from Docker preferences/settings
   2. `cd dev/ `
   3. `source $(pwd)/atc.dev.sh`
   4. `atc start`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to