docker 容器内安装wget

1、进入容器

docker exec -ti 容器名 /bin/bash

2、使用apt-get

同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,获取到最新的软件包

apt-get update

安装vim

apt-get install vim

安装ping命令

apt-get install iputils-ping

安装wget

apt-get install wget

安装ps

apt-get install procps
posted @ 2023-05-29 17:28  FromZeroToOne  阅读(1229)  评论(0编辑  收藏  举报