ubuntu docker操作记录
来源:互联网 发布:java中scanner用法 编辑:程序博客网 时间:2024/06/05 11:20
安装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
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
0 0
- ubuntu docker操作记录
- docker操作命令记录
- CentOS6.5 Docker操作记录
- ubuntu操作记录
- Ubuntu LTS 14.04配置docker记录
- Ubuntu下安装Docker,及Docker的一些常用命令操作
- Ubuntu中Docker容器的常见操作
- ubuntu下命令操作记录
- ubuntu linux ssh 操作记录
- Docker 记录
- Docker学习系列(三):Ubuntu下使用Docker的基本指令记录及一些注意事项
- ubuntu docker
- Docker镜像 在ubuntu上的基本操作
- ubuntu安装后的常用操作记录
- ubuntu下mysql的基本操作记录
- 公司ubuntu服务器登录与操作记录
- docker 操作
- docker操作
- 部署 instance 到 OVS flat network
- selenium python登录126邮箱错误记录
- Socket客服端的编程
- shipyard docker集群问题
- hihoCoder | hiho一下144周 机会渺茫
- ubuntu docker操作记录
- 一步一步写web之初识web(四)
- java笔试题【5】
- Java良好的编码习惯建议
- Java笔试题【6】
- three way of waterfall flow
- Java笔试题【7】
- Android使用socket.io实现即时通讯
- JSON Web Tokens的实现原理