Error pushing to registry: Server error: 500 , flatten docker image layers, then pushing

Hi.

here is my docker info
Containers: 0
Images: 200
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 200
Dirperm1 Supported: true
Execution Driver: native-0.2
Kernel Version: 3.16.0-50-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 4
Total Memory: 15.65 GiB
Name: ramsingh-iMac
ID: 4A35:NATD:PXQN:2YLC:57GR:SJTN:PIXK:PFXQ:MK4F:MYRE:4SNH:R4LC
Username: arcolombo
Registry: [https://index.docker.io/v1/]
WARNING: No swap limit support

docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64

OS

Linux ramsingh-iMac 3.16.0-50-generic #67~14.04.1-Ubuntu SMP Fri Oct 2 22:07:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

So following this forum’s post (How to flatten an image with 127 parents), i was able to successfully flatten a 39GB image that has been worked on over 4 months, into a 12GB image; and successfully exported / imported the docker image. I am receiving an error of 127 layer limit, and must reduce the docker image arcolombo/artemis:v156

I am receiving similar errors to

for the docker registry, I do not have a custom registry but am just pushing to Docker hub. i’m not sure how to display this information.

Nb. I am able to docker run the unlayered/flattened import of the container. the import does work. I am just now trying to push the flattened container to the docker hub. and this is when I produce the error

ramsingh@ramsingh-iMac:/data$ sudo docker push arcolombo/artemisunlayer:v2
The push refers to a repository [arcolombo/artemisunlayer] (len: 1)
2b3ff30d9f78: Image already exists
8399b157cbee: Image successfully pushed
c1ae5b75d6b2: Image push failed
FATA[2418] Error pushing to registry: Server error: 500 trying to push arcolombo/artemisunlayer blob - sha256:11b33657d0a1478092f60e6bd8dd33e91ab95e7783f62044ccee0f0c353b6031

so here are my images, arcolombo/artemis has been pushed successfully, when I exported the container, and saved it as a .tar file, I then imported into arcolombo/artemisunlayer:v2 to remove the history and flatten the image, thus reducing the size

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
arcolombo/artemisunlayer v2 2b3ff30d9f78 54 minutes ago 12.64 GB
arcolombo/artemisunlayer v1 c1ae5b75d6b2 About an hour ago 12.64 GB
arcolombo/artemis v156 de9bc789af1d 3 days ago 39.91 GB

Thank you very much.
Should I open a bug?