sh Docker附加组件机器和组合

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Docker附加组件机器和组合相关的知识,希望对你有一定的参考价值。

base=https://github.com/docker/machine/releases/download/v0.14.0 &&
  curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine &&
  sudo install /tmp/docker-machine /usr/local/bin/docker-machine
  base=https://raw.githubusercontent.com/docker/machine/v0.14.0


for i in docker-machine-prompt.bash docker-machine-wrapper.bash docker-machine.bash
do
  sudo wget "$base/contrib/completion/bash/${i}" -P /etc/bash_completion.d
done

source /etc/bash_completion.d/docker-machine-prompt.bash

# then add this line to ~/.bashrc with echo and tee (or vim if you like manual which I do)
sudo echo "PS1='[\u@\h \W$(__docker_machine_ps1)]\$ '" |  sudo tee -a ~/.bashrc

# docker compose is easy  
sudo apt-get install docker-compose && sudo apt-get install systemd-docker && sudo apt-get install runc && sudo apt-get install opencontainer*

以上是关于sh Docker附加组件机器和组合的主要内容,如果未能解决你的问题,请参考以下文章

Docker CLI 无法使用“不允许附加属性 postgres”进行组合

sh 与领事的Docker机器Docker Swarm

sh ?为docker-machine中的所有机器调用Docker Remote API

sh ?为docker-machine中的所有机器调用Docker Remote API

sh Machine Diskutil用于在Virtualbox上运行的docker机器内安装/卸载外部卷

sh Machine Diskutil用于在Virtualbox上运行的docker机器内安装/卸载外部卷