- Install docker For Debian/Ubuntu or Debian-based
# update and install necessary tools
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
# add key
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# Add repository
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install docker
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
- Enable using docker without sudo
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
now you can use docker without sudo right
simply run:
docker run --rm -it --name rabbitmq -p 15672:15672 -p 5672:5672 rabbitmq:3-management
- Python version should be 3.8.
- Conda environment is recommended.
- Perfectly work on linux.
./setup.sh
cd examples/mnist_tensorflow
python download_data.py
python server_fedavg.py
open 3 shells/terminals then run
python client_fedavg.py