Assignment: CLI App Testing
- related
- Docker Mastery
Assignment
- Use different Linux distro containers to check
curlcli tool version - Use two different terminal windows to start bash in both
centos:7andubuntu:14.04, using-it - Learn the
docker container --rmoption so you can save cleanup - Ensure
curlis installed and on latest version for that distro- ubuntu:
apt-get update && apt-get install curl - centos:
yum update curl
- ubuntu:
Answer
Run a docker container and get into the shell
docker container run --rm -it ubuntu:14.04
Inside the docker container
apt-get update && apt-get install curl
curl --version
asciiname record here.
In centos:7
docker container run --rm -it centos:7
curl --version
in this case, curl was installed by default in centos
yum update curl
The one already installed was already the latest version of curl, because before and after update the version number still the same.
See asciinema record here.