国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| // Name of the struct tag used in examples | |
| const tagName = "validate" |
Copied from the official Docker-for-mac documentation (thanks Brett for the updated doc pointer):
Docker Desktop for Mac comes with scripts to enable completion for the docker, docker-machine, and docker-compose commands. The completion scripts may be found inside Docker.app, in the Contents/Resources/etc/ directory and can be installed both in Bash and Zsh.
Bash has built-in support for completion To activate completion for Docker commands, these files need to be copied or symlinked to your bash_completion.d/ directory. For example, if you installed bash via Homebrew:
| #!/bin/bash | |
| yum groupinstall 'Development tools' -y | |
| yum install ncurses ncurses-devel wget git -y | |
| cd /usr/local/src | |
| wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 | |
| tar -xjf vim-7.4.tar.bz2 | |
| cd vim74 | |
| ./configure --prefix=/usr --with-features=huge --enable-rubyinterp --enable-pythoninterp | |
| make && make install |
| package main | |
| import ( | |
| "log" | |
| "net/mail" | |
| "encoding/base64" | |
| "net/smtp" | |
| "fmt" | |
| "strings" |
| #!/bin/bash | |
| # on centos minimal | |
| yum install gcc | |
| yum install make | |
| yum install ncurses-devel | |
| yum install lua lua-devel | |
| yum install ruby ruby-devel | |
| yum install python python-devel | |
| yum install perl perl-devel |