1. First you need a proxoox
2. Create ct and remember to chose the neting option.
3. Start the container and use the console to change the ssh option to allow remote login ## vi /etc/ssh/sshd_config Change PermitRootLogin yes ## restart sshd service.
4. ssh root@xx.xx.xx.xx
5. install something: (option1)
## sudo apt install apt-transport-https ca-certificates curl software-properties-common
## 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 bionic stable"
## sudo apt update
## sudo apt install docker-ce
## sudo systemctl status docker (option2)
## sudo apt update && apt upgrade -y
## sudo apt install gnupg2 curl software-properties-common -y
## sudo 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 $(cat /etc/os-release | grep UBUNTU_CODENAME | cut -d '=' -f 2) stable"
## sudo apt update && sudo apt install docker-ce -y
//checking docker
## docker run hello-world
Ubuntu 1804 install docker compose
## sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
## sudo chmod +x /usr/local/bin/docker-compose
## docker-compose --version
No comments:
Post a Comment
歡迎大家留言或發表意見,但垃圾或口氣不好的意見都一律刪除。