Docker Learning Notes

开启Interactive terminal ➜ ~ docker run --rm -i -t ubuntu bash root@9b6cc67f1a6d:/# Run command ➜ ~ docker run --rm -i -t ubuntu /bin/bash -c "apt-get install -y vim && vim" List container // 所有未 kill的 container docker ps -a // last run container docker ps -lq Inspect container内的各参数 // returns a json…

Remove Untagged Images From Docker

remove-untagged-images-from-docker','Build的时候出错,会有<none> ➜ parse-server git:(master) docker images REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> 4217d1e14b22 43 hours ago 651.3 MB node boron 130ebee906ca 6 days ago 651.3 MB <none> <none> c8f236c54bef 3 weeks ago 651…

Docker

Run an interactive container aka. Run an interactive container that runs in the foreground $ docker run -t -i ubuntu /bin/bash root@af8bae53bdd3:/# In this example: docker run runs a container. ubuntu is the image you would like to run. -t flag assigns a pseudo-tty or terminal inside the new…

DockerToolbox Troubleshooting

dockertoolbox-troubleshooting','## Max OSX にDockerToolBoxをインストールして QuickStartを起動すると以下のようなエラーが発生. Error getting IP address: Something went wrong running an SSH command 以下のコマンドで解決 $ docker-machine rm default $ docker-machine create --driver virtualbox default…

DockerToolbox加速

daocloud documentation: http://517021dd.m.daocloud.io 科大: 在 Docker 的启动参数中加入: --registry-mirror=https://docker.mirrors.ustc.edu.cn 以daocloud为例 docker-machine ssh default sudo sed -i "s|EXTRA_ARGS=''|EXTRA_ARGS=''--registry-mirror=http://517021dd.m.daocloud.io |g" /var/lib/boot2docker/profile exit docker-machine restart default…