DeepSpeed
DeepSpeed copied to clipboard
[REQUEST] Maybe adding something else can make a robust dockerfile
I got gpg key error when I build the image using the dockerfile which said:
#0 34.75 Reading package lists...
#0 35.52 W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
#0 35.52 E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is not signed.
#0 35.52 W: GPG error: https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
#0 35.52 E: The repository 'https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release' is not signed.
According to the post, I found we need to add new a key and remove a out of date repository:
I got the error about "/cuda/repos/ubuntu1804" because the basic image hasn't pubkey for the repo, so we need to add the key(link1,link2):
RUN apt-key del 7fa2af80 && \
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
and then for the second problem about "/machine-learning/repos/ubuntu1804", the pose said just removing this repo because it is on longer used. so I use such pool method to delete the repo:
RUN cat /etc/apt/sources.list.d/*.list >> /etc/apt/sources.list &&\
sed -i '/^deb/! s/^/#/' /etc/apt/sources.list &&\
rm -rf /etc/apt/sources.list.d/*.list &&\
sed -i '/developer\.download\.nvidia\.com\/compute\/machine-learning/d' /etc/apt/sources.list