Is there a similar to docker --config for Kaniko?

34 views
Skip to first unread message

Gerência Qualidade

unread,
Jul 30, 2024, 10:50:33 PM7/30/24
to kaniko-users
Hi all.

Using docker build and docker push, You can use the --config option of the Docker client to store multiple credentials into different paths.

docker --config ~/.project1 login registry.example.com -u <username> -p <deploy_token> docker --config ~/.project2 login registry.example.com -u <username> -p <deploy_token> 
docker --config ~/.project1 pull registry.example.com/project1
docker --config ~/.project2 pull registry.example.com/project2



I am using this with Docker and I would like to migrate to Kaniko.

Is it possible to do that with Kaniko?

Thank in advance,
--
Glauber Ferreira

Gerência Qualidade

unread,
Jul 30, 2024, 10:53:43 PM7/30/24
to kaniko-users
Adjusting line break for better understanding...

docker --config ~/.project1 login registry.example.com -u <username> -p <deploy_token>
docker --config ~/.project2 login registry.example.com -u <username> -p <deploy_token> 
docker --config ~/.project1 pull registry.example.com/project1
docker --config ~/.project2 pull registry.example.com/project2


Reply all
Reply to author
Forward
0 new messages