mrs_docker-lazy offers a smooth and efficient workflow for Docker users especially when managing multiple remote machines.
- 🚀 Simplified workflow
- 🌐 Scalable across multiple remote machines
- 🚫 Never SSH: you can work always on your local machine
- 📡 No Internet needed.
Ensure the following are installed on your local machine:
-
Copy both the private and public SSH keys from
./ssh
to your SSH configuration folder (usually~/.ssh
).
git clone [email protected]:manuelboldrer/mrs_docker-lazy.git ~/git/mrs_docker-lazy
- Install Docker.
- Ensure the public SSH key is added to
~/.ssh/authorized_keys
.
You can use:
ssh-copy-id -i ~/.ssh/ansible [email protected]
- Enable remote access to Docker:
sudo systemctl edit docker.service
Add:
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375 --containerd=/run/containerd/containerd.sock
Then:
sudo systemctl restart docker.service
Verify the service is active.
If do not want to DockerHub or a local registry, a nice alternative is to use Ansible:
- Edit
inventory.ini
to include remote IPs and usernames. - Add your image folder to
load_custom_config/shared_data/
. - Run:
./run_all.sh
⚙️ In
build_image.sh
,export_image.sh
, andimage_loader/load_docker_image.yml
, be sure to set the correct image name. (it should be fixed)
Place your workspace inside:
catkin_workspace_uvdar/src
change inventory.ini
and common_vars.sh
properly and run ./run_all.sh
- Configure
tmux_session/session.yml
. - Run:
cd tmux_session
./start.sh
./up.sh && lazydocker
🐞 Note: Lazydocker can be buggy in "stack" mode (if you run it in the same directory as the Docker Compose file). Change directory if it misbehaves.
⚙️ You can run custom commands within Lazydocker (check the config in thelazydocker/
folder). For more check LazyDocker Docs