我正在尝试在 Docker 中使用 Ubuntu 20.04 或 Ubuntu 22.04。我的Dockerfile是:
from ubuntu:22.04
run DEBIAN_FRONTEND=noninteractive apt update
Run Code Online (Sandbox Code Playgroud)
我用 构建这个docker build .。结果是:
Sending build context to Docker daemon 2.048kB
Step 1/2 : from ubuntu:22.04
---> 2dc39ba059dc
Step 2/2 : run DEBIAN_FRONTEND=noninteractive apt update
---> Running in b15002ae9dd5
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security
InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:4 …Run Code Online (Sandbox Code Playgroud)