Start up the Docker container from image:
docker run --entrypoint "/bin/bash" --rm imagename:latest -c "sleep 24h"
Obtain the container hash id:
docker ps
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
#------------------------------------------------------------------------------- | |
# NOTES: | |
#------------------------------------------------------------------------------- | |
# * Under the heading "CONFIG" below you'll find a number of configuration | |
# parameters that must be personalized for your GitHub account and org. | |
# Replace the `<CHANGE-ME>` strings with the value described in the comments | |
# (or overwrite those values at run-time by providing environment variables). |
# | |
# cqlsh_intro.cql | |
# | |
# Copyright (C) 2017 Jeff Carpenter | |
# Execute the commands in this file for a short guided tour of the CQL Shell (cqlsh) | |
# | |
# For more description, see Cassandra, The Definitive Guide 2nd Ed., Chapter 3: Installing | |
# http://shop.oreilly.com/product/0636920043041.do | |
# |
/** | |
* This will mask a portion of a credit card with 'x' if it finds it in a sentence. | |
\b(?: | |
# Visa card number 4[\ -]*(?:\d[\ -]*){11}(?:(?:\d[\ -]*){3})?\d| | |
# MasterCard card number (?:5[\ -]*[1-5](?:[\ -]*\d){2}|(?:2[\ | |
-]*){3}[1-9]|(?:2[\ -]*){2}[3-9][\ -]*\d|2[\ -]* [3-6](?:[\ -]*\d){2}|2[\ | |
-]*7[\ -]*[01][\ -]*\d|2[\ -]*7[\ -]*2[\ -]*0)(?:[\ -]*\d){12}| | |