2024-07-04
Keep Docker Container Running

1
2
3
4
5
6
docker run -d <image_name> tail -f /dev/null
docker run -d <image_name> sleep infinity
docker run -dt <image_name>
docker run -dt <image_name> cat
docker run -d <image_name> nc -l -p <port>

Read More

2023-10-05
Force To Use Docker Mirror Instead Of Pulling From Docker.Io

even if you configure /etc/docker/daemon.json like this (note: you still need to do this):

1
2
3
4
{ "registry-mirrors":
["https://mirror.baidubce.com"]
}

it is not fully working until:

1
2
sudo -E docker pull mirror.baidubce.com/significantgravitas/auto-gpt

Read More