![]() What might be the issue here? Any suggestions, advice, or criticism is welcome. So from the Git Repoâs perspective, there should be no (networking) difference between the host and container. Could this be a âhostâ networking issue? I thought that when you set âhostâ networking, youâre essentially allowing the container to NAT behind the hostâs IP address. ![]() So: I can ping the repo, but canât pull code. Instead, it seems that when my container sends the âgit cloneâ request, it never gets a response. The HTTP error code 503 (âService Unavailableâ) is clearly not the case: I know the Git Repo is available. I can ping the companyâs git repo, but when I issue the exact same âgit cloneâ command, this happens: sudo git clone git -branch 1234įatal: unable to access '': Received HTTP code 503 from proxy after pause is a few minutes long. Receiving objects: 100% (623/623), 6.96 MiB | 2.54 MiB/s, done.Ärwxr-xr-x 4 root root 4096 Feb 8 15:21 in the container, its a different story. On the host, I can run a âgit cloneâ command to pull a project off my companyâs internal github repo, no problem: sudo git clone git -branch 1234 cd existingfolder git init git remote add origin git add.Ubuntu latest 54c9d81cbb44 6 days ago the docker-compose.yml file that creates the container note that Iâm using âhostâ networking: version: "3.0" That will download the repo into the current working directory. Could this be a host networking thing?Äetails: My host machine is a Ubuntu 16.04 machine, with Docker and docker-compose installed: lsb_release -aÄocker version 20.10.7, build docker-compose -versionÄocker-compose version 1.17.1, build container is the current âlatestâ image of Ubuntu: sudo docker psĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESį7586f98afcf 54c9d81cbb44 "bash" 22 hours ago Up 22 hours sudo docker image ls From the container, I issue the same âgit cloneâ command nothing happens. Option 2: set it per project In your local repo: git config core. Where svn-repo is the URI of the SVN repository that you want to migrate and, project is the name of the project that you want to import, and git-repo-name is the directory. chmod 700 /root/.ssh & chmod 600 /root/. Run the following command in the /GitMigration directory: git svn clone -stdlayout -authors-fileauthors.txt / .I am trying to add a remote on my git project now to a server on a non-standard port by using a /.ssh/config file like. ![]() (I did install msysgit on the windows path and using plink). and /root/.ssh/idrsa private key to 600 in your Dockerfile. So I installed msysgit and putty but Im finding that git is having trouble using putty for SSH. Set the permission of /root/.ssh directory to 700. Hereâs the weirdness: From the host, I can do a âgit cloneâ to pull down a code project. Proxåommand nc -proxy proxyserverip:proxyserverport h p. When using ssh, you need to make sure you set the correct permissions to the. On the host, Iâve spun up one Ubuntu docker container. I have a weird problem: I have a Ubuntu host machine running Docker and docker-compose.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |