To delete all containers including its volumes
docker rm -vf $(docker ps -a -q)
To delete all the images
docker rmi -f $(docker images -a -q)
| global _start | |
| section .data | |
| message: db 'hello, world!', 10 | |
| section .text | |
| _start: | |
| mov rax, 1 ;system call number should be stored in rax | |
| mov rdi, 1 ; argument #1 in rdi: where to write (descriptor)? | |
| mov rsi, message ; argument #2 in rsi: where does the string start? |
| section .data | |
| example1: db 5, 16, 8, 4, 2, 11 | |
| example2: times 999 db 42 | |
| example3: dw 999 |
To delete all containers including its volumes
docker rm -vf $(docker ps -a -q)
To delete all the images
docker rmi -f $(docker images -a -q)
| # Licensed to the Apache Software Foundation (ASF) under one or more | |
| # contributor license agreements. See the NOTICE file distributed with | |
| # this work for additional information regarding copyright ownership. | |
| # The ASF licenses this file to You under the Apache License, Version 2.0 | |
| # (the "License"); you may not use this file except in compliance with | |
| # the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
| dbpath=/codeyuguo/db/data | |
| logpath=/codeyuguo/db/logs/mongodb.log | |
| port=27017 | |
| logappend=true | |
| fork=true | |
| replSet=replSet | |
| keyFile=/codeyuguo/db/keyfile |
| server { | |
| listen 443; | |
| server_name codeyuguo.com www.codeyuguo.com; | |
| location / { | |
| root /codeyuguo/www; | |
| index index.html; | |
| try_files $uri $uri/ =404; | |
| } | |
| ssl on; | |
| ssl_certificate /etc/letsencrypt/live/codeyuguo.com/fullchain.pem; |
| masterauth mypwd | |
| requirepass mypwd | |
| protected-mode yes | |
| bind 192.168.5.116 | |
| daemonize yes | |
| logfile /codeyuguo/redis/redis.log | |
| appendonly yes | |
| dir /codeyuguo/redis |
| #!/usr/bin/env bash | |
| # Licensed to the Apache Software Foundation (ASF) under one or more | |
| # contributor license agreements. See the NOTICE file distributed with | |
| # this work for additional information regarding copyright ownership. | |
| # The ASF licenses this file to You under the Apache License, Version 2.0 | |
| # (the "License"); you may not use this file except in compliance with | |
| # the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
use soft link