Push large docker image to Github Package failed

I was unable to push a large docker image to the Github Package inside the Github Actions.

The docker image is 3GB in size. The log can be found here: https://github.com/xu-cheng/latex-docker/runs/305104335

It reports “received unexpected HTTP status: 502 Bad Gateway”.

I have tested that docker push for small image works fine in Github Actions.

1 Like

Hi @xu-cheng ,

Is the image pushed for public package or private package?

GitHub Packages usage is free for public packages. For private packages, there are some usage limits of Storage and Data transfer. The private packages only have 500MB Storage and 1GB Data transfer for free, if increase the limit, user needs to bill for any additional storage or data transfer.

More details please reference here: https://help.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-packages

The image is for public package, so there should not be a usage limit. 

FWIW, I belive my problem may due to the fact the dock image consits of a single layer in large size instead of multiple smaller ones.  The error message “502 Bad Gateway”  suggests that it is blocked by the web server in the Github due to the large size in a single HTTP request.

2 Likes

I have the same problem, but with a private package. The container image is almost 2GB. I’m on the “Github Team” plan so this should be within limits.

2019-11-26T07:17:21.0897054Z Successfully built 912110aee748
2019-11-26T07:17:21.0951702Z Successfully tagged ***
2019-11-26T07:17:21.1106213Z ##[group]Run docker push ***
2019-11-26T07:17:21.1106641Z [36;1mdocker push ***[0m
2019-11-26T07:17:21.1155291Z shell: /bin/bash -e {0}
2019-11-26T07:17:21.1155438Z ##[endgroup]
2019-11-26T07:17:21.1681102Z The push refers to repository [docker.pkg.github.com/company/project/image]
2019-11-26T07:17:21.1967038Z a7c0e3b5b4f8: Preparing
2019-11-26T07:17:21.1967764Z 0a0505d3a7ba: Preparing
2019-11-26T07:17:21.1968164Z 8408a9cc43ef: Preparing
2019-11-26T07:17:21.1968554Z 067cca145139: Preparing
2019-11-26T07:17:21.1968883Z bbdb34edc047: Preparing
2019-11-26T07:17:21.1969212Z 44f2e4b14065: Preparing
2019-11-26T07:17:21.1969559Z 70fa083ba98f: Preparing
2019-11-26T07:17:21.1969885Z 15e8dc2bcf7e: Preparing
2019-11-26T07:17:21.1970209Z dc3131743093: Preparing
2019-11-26T07:17:21.1970555Z f10646a062a9: Preparing
2019-11-26T07:17:21.1970921Z 9550aa6d55b5: Preparing
2019-11-26T07:17:21.1971246Z b096a2c66a4e: Preparing
2019-11-26T07:17:21.1971596Z 687890749166: Preparing
2019-11-26T07:17:21.1971986Z 2f77733e9824: Preparing
2019-11-26T07:17:21.1972330Z 97041f29baff: Preparing
2019-11-26T07:17:21.1972679Z 44f2e4b14065: Waiting
2019-11-26T07:17:21.1973006Z 70fa083ba98f: Waiting
2019-11-26T07:17:21.1973331Z 15e8dc2bcf7e: Waiting
2019-11-26T07:17:21.1973713Z dc3131743093: Waiting
2019-11-26T07:17:21.1974036Z 687890749166: Waiting
2019-11-26T07:17:21.1974340Z f10646a062a9: Waiting
2019-11-26T07:17:21.1974681Z 9550aa6d55b5: Waiting
2019-11-26T07:17:21.1974987Z b096a2c66a4e: Waiting
2019-11-26T07:17:21.1975290Z 2f77733e9824: Waiting
2019-11-26T07:17:21.6776303Z a7c0e3b5b4f8: Retrying in 5 seconds
2019-11-26T07:17:21.6878115Z 8408a9cc43ef: Retrying in 5 seconds
2019-11-26T07:17:21.7815529Z 067cca145139: Retrying in 5 seconds
2019-11-26T07:17:21.8449738Z bbdb34edc047: Retrying in 5 seconds
2019-11-26T07:17:22.6776562Z a7c0e3b5b4f8: Retrying in 4 seconds
2019-11-26T07:17:22.6879098Z 8408a9cc43ef: Retrying in 4 seconds
2019-11-26T07:17:22.7816506Z 067cca145139: Retrying in 4 seconds
2019-11-26T07:17:22.8452397Z bbdb34edc047: Retrying in 4 seconds
2019-11-26T07:17:23.5159750Z 0a0505d3a7ba: Pushed
2019-11-26T07:17:23.6773594Z a7c0e3b5b4f8: Retrying in 3 seconds
2019-11-26T07:17:23.6877695Z 8408a9cc43ef: Retrying in 3 seconds
2019-11-26T07:17:23.7817179Z 067cca145139: Retrying in 3 seconds
2019-11-26T07:17:23.8450818Z bbdb34edc047: Retrying in 3 seconds
2019-11-26T07:17:24.6773596Z a7c0e3b5b4f8: Retrying in 2 seconds
2019-11-26T07:17:24.6877539Z 8408a9cc43ef: Retrying in 2 seconds
2019-11-26T07:17:25.6638772Z 067cca145139: Retrying in 2 seconds
2019-11-26T07:17:25.6638930Z bbdb34edc047: Retrying in 2 seconds
2019-11-26T07:17:25.6775522Z a7c0e3b5b4f8: Retrying in 1 second
2019-11-26T07:17:25.6877935Z 8408a9cc43ef: Retrying in 1 second
2019-11-26T07:17:25.7816712Z 067cca145139: Retrying in 1 second
2019-11-26T07:17:25.8451905Z bbdb34edc047: Retrying in 1 second
2019-11-26T07:17:29.0211001Z 067cca145139: Pushed
2019-11-26T07:17:29.0744106Z a7c0e3b5b4f8: Pushed
2019-11-26T07:17:29.2044345Z bbdb34edc047: Pushed
2019-11-26T07:17:29.5011690Z 8408a9cc43ef: Pushed
2019-11-26T07:17:33.0350141Z dc3131743093: Pushed
2019-11-26T07:17:36.8289192Z 9550aa6d55b5: Pushed
2019-11-26T07:17:39.0370693Z 70fa083ba98f: Pushed
2019-11-26T07:17:39.3071565Z 15e8dc2bcf7e: Pushed
2019-11-26T07:17:41.1959871Z f10646a062a9: Pushed
2019-11-26T07:17:42.0952603Z b096a2c66a4e: Pushed
2019-11-26T07:17:44.4717525Z 687890749166: Pushed
2019-11-26T07:17:46.4016862Z 2f77733e9824: Pushed
2019-11-26T07:18:05.9535508Z 97041f29baff: Pushed
2019-11-26T07:18:30.1331402Z 44f2e4b14065: Retrying in 5 seconds
2019-11-26T07:18:31.1334002Z 44f2e4b14065: Retrying in 4 seconds
2019-11-26T07:18:32.1334659Z 44f2e4b14065: Retrying in 3 seconds
2019-11-26T07:18:33.1333536Z 44f2e4b14065: Retrying in 2 seconds
2019-11-26T07:18:34.1334897Z 44f2e4b14065: Retrying in 1 second
2019-11-26T07:19:36.5981171Z 44f2e4b14065: Retrying in 10 seconds
2019-11-26T07:19:37.5982576Z 44f2e4b14065: Retrying in 9 seconds
2019-11-26T07:19:38.5982858Z 44f2e4b14065: Retrying in 8 seconds
2019-11-26T07:19:39.5982731Z 44f2e4b14065: Retrying in 7 seconds
2019-11-26T07:19:40.5982616Z 44f2e4b14065: Retrying in 6 seconds
2019-11-26T07:19:41.5983955Z 44f2e4b14065: Retrying in 5 seconds
2019-11-26T07:19:42.5983547Z 44f2e4b14065: Retrying in 4 seconds
2019-11-26T07:19:43.5982297Z 44f2e4b14065: Retrying in 3 seconds
2019-11-26T07:19:44.5982603Z 44f2e4b14065: Retrying in 2 seconds
2019-11-26T07:19:45.5982322Z 44f2e4b14065: Retrying in 1 second
2019-11-26T07:20:53.5255238Z 44f2e4b14065: Retrying in 15 seconds
2019-11-26T07:20:54.5257365Z 44f2e4b14065: Retrying in 14 seconds
2019-11-26T07:20:55.5257064Z 44f2e4b14065: Retrying in 13 seconds
2019-11-26T07:20:56.5257538Z 44f2e4b14065: Retrying in 12 seconds
2019-11-26T07:20:57.5259171Z 44f2e4b14065: Retrying in 11 seconds
2019-11-26T07:20:58.5256726Z 44f2e4b14065: Retrying in 10 seconds
2019-11-26T07:20:59.5256837Z 44f2e4b14065: Retrying in 9 seconds
2019-11-26T07:21:00.5256729Z 44f2e4b14065: Retrying in 8 seconds
2019-11-26T07:21:01.5257053Z 44f2e4b14065: Retrying in 7 seconds
2019-11-26T07:21:02.5257213Z 44f2e4b14065: Retrying in 6 seconds
2019-11-26T07:21:03.5257144Z 44f2e4b14065: Retrying in 5 seconds
2019-11-26T07:21:04.5258156Z 44f2e4b14065: Retrying in 4 seconds
2019-11-26T07:21:05.5257128Z 44f2e4b14065: Retrying in 3 seconds
2019-11-26T07:21:06.5257829Z 44f2e4b14065: Retrying in 2 seconds
2019-11-26T07:21:07.5257837Z 44f2e4b14065: Retrying in 1 second
2019-11-26T07:22:12.3693118Z 44f2e4b14065: Retrying in 20 seconds
2019-11-26T07:22:13.3697044Z 44f2e4b14065: Retrying in 19 seconds
2019-11-26T07:22:14.3694802Z 44f2e4b14065: Retrying in 18 seconds
2019-11-26T07:22:15.3695147Z 44f2e4b14065: Retrying in 17 seconds
2019-11-26T07:22:16.3693963Z 44f2e4b14065: Retrying in 16 seconds
2019-11-26T07:22:17.3695626Z 44f2e4b14065: Retrying in 15 seconds
2019-11-26T07:22:18.3695182Z 44f2e4b14065: Retrying in 14 seconds
2019-11-26T07:22:19.3695510Z 44f2e4b14065: Retrying in 13 seconds
2019-11-26T07:22:20.3694546Z 44f2e4b14065: Retrying in 12 seconds
2019-11-26T07:22:21.3694119Z 44f2e4b14065: Retrying in 11 seconds
2019-11-26T07:22:22.3694599Z 44f2e4b14065: Retrying in 10 seconds
2019-11-26T07:22:23.3695426Z 44f2e4b14065: Retrying in 9 seconds
2019-11-26T07:22:24.3696930Z 44f2e4b14065: Retrying in 8 seconds
2019-11-26T07:22:25.3698419Z 44f2e4b14065: Retrying in 7 seconds
2019-11-26T07:22:26.3694655Z 44f2e4b14065: Retrying in 6 seconds
2019-11-26T07:22:27.3694710Z 44f2e4b14065: Retrying in 5 seconds
2019-11-26T07:22:28.3696549Z 44f2e4b14065: Retrying in 4 seconds
2019-11-26T07:22:29.3696215Z 44f2e4b14065: Retrying in 3 seconds
2019-11-26T07:22:30.3698297Z 44f2e4b14065: Retrying in 2 seconds
2019-11-26T07:22:31.3697432Z 44f2e4b14065: Retrying in 1 second
2019-11-26T07:23:55.0852359Z received unexpected HTTP status: 502 Bad Gateway
2019-11-26T07:23:55.0868757Z ##[error]Process completed with exit code 1.
2019-11-26T07:23:55.0888154Z Cleaning up orphan processes