Skip to content

Commit

Permalink
Update sky/task.py
Browse files Browse the repository at this point in the history
Co-authored-by: Zhanghao Wu <[email protected]>
  • Loading branch information
cblmemo and Michaelvll authored Sep 18, 2023
1 parent 1a79f04 commit 19524a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sky/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def _add_docker_login_config(resources: 'resources_lib.Resources'):
# Already checked in extract_docker_image
assert len(resources.image_id) == 1
region = list(resources.image_id.keys())[0]
# We automatically add the server prefix to the image name if
# the user did not add it.
server_prefix = f'{docker_login_config.server}/'
if not docker_image.startswith(server_prefix):
docker_image = f'{server_prefix}{docker_image}'
Expand Down

0 comments on commit 19524a9

Please sign in to comment.