前端之家收集整理的这篇文章主要介绍了
ubuntu docker操作记录,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
安装OpenSSH server: 1. 使用apt命令安装openssh server $ sudo apt-get install openssh-server 2. 可以对 openssh server进行配置 $ sudo vi /etc/ssh/sshd_config 找到PermitRootLogin no一行,改为PermitRootLogin yes 3. 重启 openssh server $ sudo service ssh restart PermitRootLogin prohibit-password 查看所有
用户和
用户组: cat /etc/passwd cat /etc/group ubentu 找回root密码 http://jingyan.baidu.com/article/c843ea0b9e851077931e4aea.html 安装完成后docker的ps pull search run命令都会报这个错 Cannot connect to the Docker daemon. Is the docker daemon running on this host? systemctl enable docker # 开机
自动启动docker systemctl start docker # 启动dockersystemctl restart docker # 重启dokcer 如何查看docker 容器 控制台
输出 docker logs 6f873fc6d525 npm install -g pomelo@1.2.2 dpkg -L packagename dpkg -L +软件包的名字,可以知道这个软件包包含了哪些
文件 保存对容器的
修改 docker ps -l docker commit 698 learn/ping apt install npm apt-get install make apt-get install g++ curl -sL https://deb.nodesource.com/setup_5.x | bash - Run `apt-get install nodejs` (as root) to install Node.js v5.x and npm apt-get install wget wget https://launchpad.net/ubuntu/+source/rlwrap/0.41-1 dpkg -i rlwrap_0.34-2_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/rlwrap_0.41-1.dsc https://launchpad.net/ubuntu/+archive/primary/+files/rlwrap_0.41.orig.tar.gz rlwrap_0.41.orig.tar 安装过程: [root@oradb temp]# tar -xvf rlwrap-0.28.tar [root@oradb temp]# cd rlwrap-0.28 [root@oradb rlwrap-0.28]# ./configure [root@oradb rlwrap-0.28]# make [root@oradb rlwrap-0.28]# make install apt-cache search readline apt-get install libreadline6 libreadline6-dev http://serverfault.com/questions/670728/nodejs-depends-rlwrap-but-it-is-not-installable nodejs : Depends: rlwrap but it is not installable wget http://kr.archive.ubuntu.com/ubuntu/pool/universe/r/rlwrap/rlwrap_0.37-5_amd64.deb dpkg -i rlwrap_0.34-2_amd64.deb docker run -it learn/tutorial /bin/bash apt-get install curl apt-get install make npm install -g node-gyp apt-get install -y build-essential apt-get install sysstat
原文链接:https://www.f2er.com/ubuntu/353679.html