💻Docker installation
Our Releases section on GitHub is the best place to locate the latest binary releases and view the source code.
Step 1: Download the Image
docker pull nezha123/titan-edge
Step 2: Create your own storage path
mkdir ~/.titanedge
Step 3: Run the node
docker run --network=host -d -v ~/.titanedge:/root/.titanedge nezha123/titan-edgeStep 4: Enter the Container
Step 4: Bind the applied 👉identity code👈
docker run --rm -it -v ~/.titanedge:/root/.titanedge nezha123/titan-edge bind --hash=your-hash-here https://api-test1.container1.titannet.io/api/v2/device/binding
Docker Tutorial: Impact and Handling of NAT Types When Running Docker on Machines with Public IP Addresses
Impact Description:
Operating Docker on machines with a public IP can result in a Nonat NAT type. This may hinder the capability to run multiple Docker instances. To mitigate this, consider the following steps.
Handling Methods:
1. Removing Network Host Mode:
By default, using --network=host
integrates the container directly with the host's network, leading to a Nonat NAT type. You can avoid this issue by removing this parameter, which restores the NAT type to its previous state.
2. Modify Port Configuration:
To maintain use of a public IP, manually adjust the default port, changing it from 1234 to another suitable for your network setup.
Considerations:
Before executing commands, ensure your network settings or port configurations are appropriately adjusted.
Post-adjustment, validate that the Docker container's performance aligns with expectations.
Last updated