Execute on the commandline:
$ sudo docker attach 665b4a1e17b6 #by ID or $ sudo docker attach loving_heisenberg #by Name $ root@665b4a1e17b6:/#
UPDATE: (docker >= 1.3) Thanks to WiR3D user who suggested another way to get container’s shell. If we use
attach we can use only one instance of shell. So if we want open new terminal with new instance of container’s shell, we just need run the following:
$ sudo docker exec -i -t 665b4a1e17b6 bash #by ID or $ sudo docker exec -i -t loving_heisenberg bash #by Name $ root@665b4a1e17b6:/#
Checkout this youtube (just below 11minutes): Ten Quick Tips to Improve Your Chef Workflow – ChefConf 2015
1. Chef on a Windows workstation.
2. Shared ServerSpec Helper files.
4. use screen recording software.
5. use pre-baked VMs or Containers
6. troubleshoot with Pry.
7. use run_state to store data, available later in the chef run.
8. coerce everthing instead of checking for .nil?
9. use a good text editor.
X. write stuff done, then add them to SCM.
For everybody who has an issue with the text: your-dns-needs-immediate-attention
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.dev" port 443 (https://your-dns-needs-immediate-attention.dev)
This is problably because the .dev and .local are now valid top level extensions.
i had to solve this, add “search home.local” to “/etc/resolv.conf”
(actually added this to “/etc/resolvconf/resolv.conf.d/head”)
The current explanation on github.
But the original post on http://scottchacon.com/2011/08/31/github-flow.html does not contain all the images anymore.
So i have created a downloadable pdf of the original post github-flow with images.
Original location: https://www.ibm.com/developerworks/community/forums/weblogs/data/SDOforZendConf2005.pdf
latest Git version requires manually setting the
user.email, if the email cannot be auto-detected.
In combination with etckeeper configured with Git, this can give an error (example bellow).
To prevent this, make sure “/etc/hosts” contains a FQDN for the current hostname of your machine.
The recommended method of setting the FQDN is to make the hostname be an alias for the fully qualified name using /etc/hosts, DNS, or NIS. For example, if the hostname was
“ursula”, one might have a line in /etc/hosts which reads
127.0.1.1 ursula.example.com ursula
linked bug on launchpad: https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1267564
*** Please tell me who you are.
git config --global user.email "<email address hidden>"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address