Merge pull request #8 from gustavotrott/main

fix: Add validation/instructions about Docker version
This commit is contained in:
Anton Georgiev 2023-01-06 10:15:19 -05:00 committed by GitHub
commit b197696d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -22,6 +22,8 @@ sudo usermod -aG docker `whoami`
sudo reboot sudo reboot
``` ```
- **For Ubuntu 22.04 users:** In our tests, `containerd` had to be downgraded to version 1.6.6 in order to have all features working properly. `sudo apt install containerd.io=1.6.6-1`.
## Container setup ## Container setup
1. Save (right click, save as) the creation script in home directory (`~`): [create_bbb.sh](create_bbb.sh?raw=1) 1. Save (right click, save as) the creation script in home directory (`~`): [create_bbb.sh](create_bbb.sh?raw=1)

View File

@ -1,4 +1,19 @@
#!/bin/bash #!/bin/bash
if ! command -v docker &> /dev/null
then
echo "Docker not found! Required Docker 20 or greater"
exit
fi
DOCKER_VERSION=$(docker version -f "{{.Server.Version}}")
DOCKER_VERSION_MAJOR=$(echo "$DOCKER_VERSION"| cut -d'.' -f 1)
if [ ! "${DOCKER_VERSION_MAJOR}" -ge 20 ] ; then
echo "Invalid Docker version! Required Docker 20 or greater"
exit
fi
NAME= NAME=
DOMAIN=test DOMAIN=test
IP=172.17.0.2 IP=172.17.0.2
@ -258,7 +273,7 @@ ssh-keyscan -H "$DOCKERIP" >> ~/.ssh/known_hosts
ssh-keyscan -H "$HOSTNAME" >> ~/.ssh/known_hosts ssh-keyscan -H "$HOSTNAME" >> ~/.ssh/known_hosts
# ssh-keyscan -H [hostname],[ip_address] >> ~/.ssh/known_hosts # ssh-keyscan -H [hostname],[ip_address] >> ~/.ssh/known_hosts
if [ ! -z $(tail -1 ~/.ssh/config) ] ; then if [ ! -z "$(tail -1 ~/.ssh/config)" ] ; then
echo "" >> ~/.ssh/config echo "" >> ~/.ssh/config
fi fi