環境:ubuntu18.04.4LTS
一、Docker安裝
1、使用apt-update apt-upgrade使系統處於最新狀態
2、輸入curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
二、安裝Docker-compose
3、sudo curl -L https://github.com/docker/compose/releases/download/1.26.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose(PS:去官網https://github.com/docker/compose/releases/查看docker最新版本,1.26.0是當前最新版本
4、chmod +x /usr/local/bin/docker-compose
5、完成後輸入docker-compose --version 查看版本
三、Jumpserver一鍵安裝版
6、git clone https://github.com/wojiushixiaobai/docker-compose.git
7、docker-compose up -d(可能會報錯:Can't find a suitable configuration file in this directory or any parent. Are you in the right directory Supported filenames: docker-compose.yml, docker-compose.yaml。檢查一下是否在docker-compose的文件夾的路徑下)
8、完成後輸入docker ps查看當前。
四:默認網址 http://IP地址 默認賬號密碼:admin
PS:Docker查看日誌 docker logs -f 容器名字