Skip to content

Public exercises from our Hands on Docker and Hands on Ansible trainings.

Notifications You must be signed in to change notification settings

x-cellent/training-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Training Exercises

Public exercises from our Hands on Docker and Hands on Ansible trainings.

Hands on Docker

To run docker commands you have to ssh into the docker vm.

ssh ubuntu@docker

Now you can run docker and docker-compose commands.

docker version
docker compose version
docker run hello-world

Since you are working on another host when running docker commands you can not use the files directly from editor. To have the same files like in your editor run the rsync commonand from the workspace host.

rsync -r /home/coder/workspace/hands-on-docker ubuntu@docker:/home/ubuntu

Hands on Ansible

To use ansible you can stay on the standard host.
Always check in which direcotry you are.

$ pwd
/home/coder/workspace/hands-on-ansible

Remeber to always specify the inventory with -i inventory.ymal and the correct path to the playbook when running an ansible command.

ansible-playbook -i inventory.yaml exercises/01-solution-ping/ping.yaml

About

Public exercises from our Hands on Docker and Hands on Ansible trainings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published