无法在Windows上的Ubuntu上运行Bash中的apt get update from docker容器

无法在Windows上的Ubuntu上运行Bash中的apt get update from docker容器,docker,ubuntu,windows-subsystem-for-linux,apt-get,Docker,Ubuntu,Windows Subsystem For Linux,Apt Get,我从微软商店安装了Ubuntu 16.04,并按照说明在Ubuntu上安装了docker。我能够让docker运行,但当我尝试构建docker映像时,在运行apt get update步骤失败。类似地,当我运行带有docker run-it Ubuntu bash的Ubuntu容器时,运行apt get update会给出以下结果 我尝试过清除apt缓存并重新生成它,运行apt get clean修剪docker系统,并使用--允许未经验证的,但没有任何效果。我从docker容器和ubuntu运

我从微软商店安装了Ubuntu 16.04,并按照说明在Ubuntu上安装了docker。我能够让docker运行,但当我尝试构建docker映像时,在
运行apt get update
步骤失败。类似地,当我运行带有
docker run-it Ubuntu bash的Ubuntu容器时,运行
apt get update
会给出以下结果

我尝试过清除apt缓存并重新生成它,运行
apt get clean
修剪docker系统,并使用
--允许未经验证的
,但没有任何效果。我从docker容器和ubuntu运行df来检查剩余空间,我有超过20GB的剩余mroe,这应该足够了吧?可能是什么问题

码头工人信息:

me@DESKTOP~$docker信息
货柜:1
正在运行:0
暂停:0
停止:1
图片:3
服务器版本:17.09.0-ce
存储驱动程序:overlay2
备份文件系统:
支持d_类型:true
本机覆盖差异:真
日志驱动程序:json文件
Cgroup驱动程序:cgroupfs
插件:
卷:本地
网络:网桥主机macvlan空覆盖
日志:awslogs fluentd gcplogs gelf journald json文件日志条目splunk syslog
蜂群:不活跃
运行时:runc
默认运行时:runc
初始化二进制文件:docker Init
集装箱版本:06b9cb35161009dcb7123345749fef02f7cea8e0
runc版本:3F2F8B84A77F73D3824DD69052642A72156C64
初始版本:949e6fa
内核版本:4.4.0-18362-Microsoft
操作系统:Ubuntu 16.04.7 LTS
OSType:linux
架构:x86_64
中央处理器:4
总内存:15.84GiB
名称:DESKTOP-DOC78SA
ID:CHGU:3AXK:5MJK:XK3H:LXBS:BQJI:AGW6:SF7J:7FG3:BUBD:J55H:VXUM
Docker根目录:/var/lib/Docker
调试模式(客户端):false
调试模式(服务器):false
注册处:https://index.docker.io/v1/
实验性:错误
不安全的登记处:
127.0.0.0/8
已启用实时还原:false
警告:不支持内存限制
警告:不支持交换限制
警告:不支持内核内存限制
警告:没有禁用支持
警告:不支持cpu cfs配额
警告:没有cpu cfs周期支持
警告:没有cpu共享支持
警告:不支持cpuset

这回答了你的问题吗?您可以尝试使用
docker container prune
docker image prune
删除停止的容器和悬挂的图像。如果问题与存储空间不足有关,这会有所帮助。我已经尝试过了,但它对我不起作用。还运行了df,发现我还有超过20GB的空间。这是否回答了您的问题?您可以尝试使用
docker container prune
docker image prune
删除停止的容器和悬挂的图像。如果问题与存储空间不足有关,这会有所帮助。我已经尝试过了,但它对我不起作用。还运行了df,发现我还有超过20GB的空间。
root@266ddcbcf737:/# apt-get update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Err:1 http://security.ubuntu.com/ubuntu focal-security InRelease
  At least one invalid signature was encountered.
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Err:2 http://archive.ubuntu.com/ubuntu focal InRelease
  At least one invalid signature was encountered.
Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  At least one invalid signature was encountered.
Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  At least one invalid signature was encountered.
Reading package lists... Done
W: GPG error: http://security.ubuntu.com/ubuntu focal-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu focal InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu focal-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu focal-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu focal-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu focal-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@653e5734fa23:/# df
Filesystem     1K-blocks      Used Available Use% Mounted on
overlay        215196196 192359380  22836816  90% /
tmpfs          215196196 192359380  22836816  90% /dev
tmpfs          215196196 192359380  22836816  90% /sys/fs/cgroup
rootfs         215196196 192359380  22836816  90% /etc/hosts
shm            215196196 192359380  22836816  90% /dev/shm
root@653e5734fa23:/# exit
exit
me@DESKTOP:~$ df
Filesystem     1K-blocks      Used Available Use% Mounted on
rootfs         215196196 192358800  22837396  90% /
none           215196196 192358800  22837396  90% /dev
none           215196196 192358800  22837396  90% /run
none           215196196 192358800  22837396  90% /run/lock
none           215196196 192358800  22837396  90% /run/shm
none           215196196 192358800  22837396  90% /run/user
cgroup         215196196 192358800  22837396  90% /sys/fs/cgroup
C:\            215196196 192358800  22837396  90% /mnt/c
me@DESKTOP~$ docker info
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 3
Server Version: 17.09.0-ce
Storage Driver: overlay2
 Backing Filesystem: <unknown>
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Kernel Version: 4.4.0-18362-Microsoft
Operating System: Ubuntu 16.04.7 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.84GiB
Name: DESKTOP-DOC78SA
ID: CHGU:3AXK:5MJK:XK3H:LXBS:BQJI:AGW6:SF7J:7FG3:BUBD:J55H:VXUM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpu shares support
WARNING: No cpuset support