replicated icon indicating copy to clipboard operation
replicated copied to clipboard

Push Docker image via CLI

Open jaulz opened this issue 7 years ago • 2 comments

It would be great if we could push the Docker image via CLI. Hence we could use tokens instead of using username/password. Is anything like this on the roadmap?

jaulz avatar Sep 11 '18 15:09 jaulz

Hi @jaulz -- apologies for the delay here. This is a great request and I believe its somewhere on the roadmap. Just to be clear, you're looking for something like

export REPLICATED_APP=xxx
export REPLICATED_API_TOKEN=xxx
replicated docker -- push registry.replicated.com/myapp/myimage:1.1.0

where the app/token would be used to authenticate? Or would it be sufficient to just have something like a placeholder username for usage with the docker CLI?

echo $REPLICATED_API_TOKEN | docker login --username=placeholder --password-stdin
docker push registry.replicated.com/myapp/myimage:1.1.0

dexhorthy avatar Mar 25 '19 19:03 dexhorthy

@dexhorthy actually the first one would be the desired behaviour so we don't need to maintain username/password in our pipeline but instead can use a simple token that can only be used for deployment.

jaulz avatar Apr 12 '19 09:04 jaulz