Linux/Docker/Installation: Difference between revisions
No edit summary |
|||
Line 19: | Line 19: | ||
ExecStart=/usr/bin/dockerd -g /srv/docker-lib -H fd:// | ExecStart=/usr/bin/dockerd -g /srv/docker-lib -H fd:// | ||
</pre> | </pre> | ||
== Installation on Windows, control from WSL == | == Installation on Windows, control from WSL == | ||
Line 26: | Line 27: | ||
** Follow "Installation on Ubuntu" instructions from above | ** Follow "Installation on Ubuntu" instructions from above | ||
** <pre>echo "export DOCKER_HOST=localhost:2375" >> ~/.bashrc</pre> | ** <pre>echo "export DOCKER_HOST=localhost:2375" >> ~/.bashrc</pre> | ||
== Docker compose installation on Ubuntu == | == Docker compose installation on Ubuntu == | ||
Line 37: | Line 39: | ||
docker-compose --version | docker-compose --version | ||
</pre> | </pre> | ||
== ctop - commandline monitoring == | |||
<pre> | |||
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.3/ctop-0.7.3-linux-amd64 -O /usr/local/bin/ctop | |||
sudo chmod +x /usr/local/bin/ctop | |||
</pre> | |||
[[Category:Linux/Docker]] | [[Category:Linux/Docker]] | ||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 17:45, 14 May 2020
Installation on Ubuntu
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt update apt-cache policy docker-ce sudo apt install docker-ce sudo systemctl status docker
- Set different docker root dir:
vi /etc/systemd/system/docker.service.d/docker.root.conf [Service] ExecStart= ExecStart=/usr/bin/dockerd -g /srv/docker-lib -H fd://
Installation on Windows, control from WSL
- Install Docker for Windows
- Settings: Expose daemon without TLS
- WSL:
- Follow "Installation on Ubuntu" instructions from above
echo "export DOCKER_HOST=localhost:2375" >> ~/.bashrc
Docker compose installation on Ubuntu
# latest version number #git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | tail -n 1 curl --silent "https://api.github.com/repos/docker/compose/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose docker-compose --version
ctop - commandline monitoring
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.3/ctop-0.7.3-linux-amd64 -O /usr/local/bin/ctop sudo chmod +x /usr/local/bin/ctop