-
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
- Delete all untagged images
#------------ bootstrap the cluster nodes -------------------- | |
start_cmd='redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes' | |
redis_image='redis:5.0-rc' | |
network_name='redis_cluster_net' | |
docker network create $network_name | |
echo $network_name " created" | |
#---------- create the cluster ------------------------ |
@Configuration | |
@PropertySource(CoreSpringConfig.PROPERTIES) | |
public class WebappSpringConfig { | |
@Autowired | |
private Environment environment; | |
/** | |
* 'springSecurityFilterChain' is Magic ID and it is required by Spring Security DelegatingFilterProxy in web.xml | |
* |
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
$ python3
>>> Python 3.5.1
get-pip.py
from https://bootstrap.pypa.io/get-pip.py$ sudo python3 get-pip.py
import UIKit | |
struct Person { // Entity (usually more complex e.g. NSManagedObject) | |
let firstName: String | |
let lastName: String | |
} | |
struct GreetingData { // Transport data structure (not Entity) | |
let greeting: String | |
let subject: String |