securify
securify copied to clipboard
can not build docker image on ubuntu 18.04
I have checked the following
when i build image, there are some errors as follow
$OUTPUT Err:1 http://archive.ubuntu.com/ubuntu cosmic InRelease Temporary failure resolving 'archive.ubuntu.com' Err:2 http://security.ubuntu.com/ubuntu cosmic-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:3 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease Temporary failure resolving 'archive.ubuntu.com' Err:4 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease Temporary failure resolving 'archive.ubuntu.com' Reading package lists... W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/cosmic/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/cosmic-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/cosmic-backports/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/cosmic-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
so the is it need ubuntu 18.10?
Hey @mengquanrun,
sounds like a network issue to me. Can you try again?
I have the similar error like you, but don't know how to solve it. Here is my building result in docker
(base) $ docker build . -t securify
[+] Building 9.2s (6/21)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:18.10 3.2s
=> [internal] load build context 0.1s
=> => transferring context: 51.04kB 0.1s
=> CACHED [ 1/17] FROM docker.io/library/ubuntu:18.10@sha256:7d657275047118bb77b052c4c0ae43e8a289ca2879ebfa78a703c93aa8fd6 0.0s
=> ERROR [ 2/17] RUN apt-get update && apt-get install -y software-properties-common locales 5.9s
[ 2/17] RUN apt-get update && apt-get install -y software-properties-common locales:
#5 1.691 Ign:1 http://archive.ubuntu.com/ubuntu cosmic InRelease
#5 1.691 Ign:2 http://security.ubuntu.com/ubuntu cosmic-security InRelease
#5 2.304 Err:3 http://security.ubuntu.com/ubuntu cosmic-security Release
#5 2.304 404 Not Found [IP: 185.125.190.39 80]
#5 2.611 Ign:4 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease #5 3.430 Ign:5 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease #5 4.394 Err:6 http://archive.ubuntu.com/ubuntu cosmic Release #5 4.394 404 Not Found [IP: 185.125.190.39 80] #5 5.131 Err:7 http://archive.ubuntu.com/ubuntu cosmic-updates Release #5 5.131 404 Not Found [IP: 185.125.190.39 80] #5 5.847 Err:8 http://archive.ubuntu.com/ubuntu cosmic-backports Release #5 5.847 404 Not Found [IP: 185.125.190.39 80] #5 5.851 Reading package lists... #5 5.870 E: The repository 'http://security.ubuntu.com/ubuntu cosmic-security Release' does not have a Release file. #5 5.870 E: The repository 'http://archive.ubuntu.com/ubuntu cosmic Release' does not have a Release file. #5 5.870 E: The repository 'http://archive.ubuntu.com/ubuntu cosmic-updates Release' does not have a Release file.
executor failed running [/bin/sh -c apt-get update && apt-get install -y software-properties-common locales]: exit code: 100
I don't know what's wrong with it TnT.