dockerfile - Cloning git repository from docker container -


to let docker access git repository, have created personal access token. , embedded command

run git clone -b docker https://token:x-oauth-basic@github.com:user/repo.git

into dockerfile. got 1

but throwing error:

remote: not found fatal: repository 'https://{token}:x-oauth-asic@github.com:user/repo.git/' not found

although have given permission access repo.

i have googled problem , there option copy ssh key container want use oauth mechanism. not working, please tell me know going wrong here.

the format using git token below

git clone https://<token>@github.com/owner/repo.git 

or

git clone https://<token>:x-oauth-basic@github.com/owner/repo.git 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -