Khá lằng nhằng nhỉ? DO làm kiểu này như muốn hút tiền vậy,
Băng thông và các thông số khác của DNH
1 Like
DO chất lượng khá ổn đó anh. Bên Amazon EC2 còn kinh khủng hơn kìa.
Em thì hay dùng runabove.com để làm staging server. có 2,5$ /month / vps. Quá rẻ cho 1 cuộc tình.
docker mới không có cleanup nữa rồi
root@daynhauhoc:/var/discourse# ./launcher --help
WARNING: No swap limit support
Usage: launcher COMMAND CONFIG [--skip-prereqs]
Commands:
start: Start/initialize a container
stop: Stop a running container
restart: Restart a container
destroy: Stop and remove a container
enter: Use nsenter to enter a container
ssh: Start a bash shell in a running container
logs: Docker logs for container
mailtest: Test the mail settings in a container
bootstrap: Bootstrap a container for the config based on a template
rebuild: Rebuild a container (destroy old, bootstrap, start new)
Options:
--skip-prereqs Don't check prerequisites
--docker-args Extra arguments to pass when running docker
root@daynhauhoc:/var/discourse# ./launcher cleanup
WARNING: No swap limit support
Usage: launcher COMMAND CONFIG [--skip-prereqs]
Commands:
start: Start/initialize a container
stop: Stop a running container
restart: Restart a container
destroy: Stop and remove a container
enter: Use nsenter to enter a container
ssh: Start a bash shell in a running container
logs: Docker logs for container
mailtest: Test the mail settings in a container
bootstrap: Bootstrap a container for the config based on a template
rebuild: Rebuild a container (destroy old, bootstrap, start new)
Options:
--skip-prereqs Don't check prerequisites
--docker-args Extra arguments to pass when running docker
Docker của anh quá cũ rồi -_-
Usage: launcher COMMAND CONFIG [--skip-prereqs]
Commands:
start: Start/initialize a container
stop: Stop a running container
restart: Restart a container
destroy: Stop and remove a container
enter: Use nsenter to enter a container
ssh: Start a bash shell in a running container
logs: Docker logs for container
mailtest: Test the mail settings in a container
bootstrap: Bootstrap a container for the config based on a template
rebuild: Rebuild a container (destroy old, bootstrap, start new)
cleanup: Remove all containers that have stopped for > 24 hours
Options:
--skip-prereqs Don't check prerequisites
--docker-args Extra arguments to pass when running docke
Không phải cái extension của Discourse. Discourse Docker kìa anh. Muốn update nó thì
git pull
cd /var/discourse
git pull
Vậy thôi hả?
Anh thử xem. Không biết phần ./launcher rebuild app
có cần thiết không nữa
Lâu rồi không pull
Nếu chạy là ngủ luôn, build phải 15p
1 Like
Yeah. Em cũng ngủ đây.
Cứ quăng đó nó build. Có ai vào đây giớ này đây
À, mà chắc không cần rebuild đâu =))
ok, bb, g9
Before:
Usage of /: 71.5% of 29.40GB
After:
Usage of /: 50.4% of 29.40GB
root@daynhauhoc:/var/discourse# landscape-sysinfo
System load: 1.21 Processes: 130
Usage of /: 71.5% of 29.40GB Users logged in: 1
Memory usage: 82% IP address for eth0: 128.199.206.246
Swap usage: 6% IP address for docker0: 172.17.42.1
Graph this data and manage this system at:
https://landscape.canonical.com/
root@daynhauhoc:/var/discourse# ./launcher --help
Usage: launcher COMMAND CONFIG [--skip-prereqs]
Commands:
start: Start/initialize a container
stop: Stop a running container
restart: Restart a container
destroy: Stop and remove a container
enter: Use nsenter to enter a container
ssh: Start a bash shell in a running container
logs: Docker logs for container
mailtest: Test the mail settings in a container
bootstrap: Bootstrap a container for the config based on a template
rebuild: Rebuild a container (destroy old, bootstrap, start new)
cleanup: Remove all containers that have stopped for > 24 hours
Options:
--skip-prereqs Don't check prerequisites
--docker-args Extra arguments to pass when running docker
root@daynhauhoc:/var/discourse# ./launcher cleanup
The following command will
- Delete all docker images for old containers
- Delete all stopped and orphan containers
Are you sure (Y/n): y
Starting Cleanup
Deleted: 2c7e44a736690d84f04951ad64eb80e578a094f2d451fd22aff540a08713c694
Deleted: 1a7d140b32a8bd71ac83d9dbc51a83bf922b51c8f86a6e8b81f08aaccab54c26
Deleted: 05cf307d3430b755535c246657d2089da0ec3c1d05c25345aef83ac70f921ea9
Deleted: bc4ced14056e5ff8a264a4a970af5b814b435319cdb382e1b9a2355facba29c6
Deleted: 88c3d240e5bee3ef53fc7170fbff6b037e474b2c130c856b7a9ed8850e70d796
Deleted: 9191420f915d31d997d4558a43b43de11c6ac2ae4b39e8cac7a78d341d20a138
Deleted: efa60e5810c6ea91c04ea41363e89ceb0e55e48b26f5017a743e2709f6166a8e
Deleted: 23af614449d1eb6bea84855c784e026a1917b8276f5bf639bdd20489b142955a
Deleted: 74306fc4b0843eb382d0fe68efef7a0f4aa0b50bdb46b82bef13a0aeccf53977
Deleted: 24cfd0e9db96ab4697e90c7806265d03445f7d61e0d754d8b0bf048fd55f7093
7201940
13689644
./launcher cleanup cleared up -6487704 of disk space.
root@daynhauhoc:/var/discourse# landscape-sysinfo
System load: 0.19 Processes: 121
Usage of /: 50.4% of 29.40GB Users logged in: 1
Memory usage: 81% IP address for eth0: 128.199.206.246
Swap usage: 13% IP address for docker0: 172.17.42.1
Graph this data and manage this system at:
https://landscape.canonical.com/
1 Like