随笔分类 - docker
Debian配置Telnet
摘要:1.sudo apt-get install xinetd telnetd 2.vim /etc/xinetd.d/telnet (创建配置文件) 加入以下内容: service telnet { disable = no flags = REUSE socket_type = stream wai
以特权程序创建和运行容器 Failed to get D-Bus connection: Operation not permitted
摘要:① docker run -d --name centos --privileged=true centos:centos7 /usr/sbin/init
② docker exec -it centos /bin/bash
docker常用命令
摘要:边学习边补充 查看镜像 docker image ls 查看运行中的容器 docker ps 宿主机和容器间复制文件 从主机复制到容器sudo docker cp host_path containerID:container_path 从容器复制到主机sudo docker cp containe
docker 精简版容器 没有vim和vi怎么编辑文件
摘要:docker编辑文件 精简版没有vi也没有vim,那么要怎么编辑文件? echo abc >> test.txt 下载vim 在宿主机编写好文件之后copy到容器中 使用sed命令 Linux sed 命令 | 菜鸟教程 (runoob.com)