I'm trying to add mount --bind /proc/ /chroot/mysql/proc
to /etc/fstab
. How can I do this?
I want to inspect a docker image created by someone else with both an entrypoint and cmd specified, for example:
ENTRYPOINT ["/usr/sbin/apache2ctl"]
CMD ["-D", "FOREGROUND"]
I currently do:
docker run --interactive --tty --entrypoint=/bin/bash $IMAGE --login
Is there a way to override CMD to be empty (so I don't have to use "--login") ?
I've noticed that the "preferred" method of setting the system hostname is fundamentally different between Red Hat/CentOS and Debian/Ubuntu systems.
CentOS documentation and the RHEL deployment guide say the hostname should be the FQDN:
HOSTNAME=<value>
, where<value>
should be the Fully Qualified Domain Name (FQDN), such ashostname.example.com
, but can be whatever hostname is necessary.
The RHEL install guide is slightly more ambiguous:
Setup prompts you to supply a host name for this computer, either as a fully-qualified domain name (FQDN) in the format hostname.domainname or as a short host name in the format hostname.
The Debian reference says the hostname should not use the FQDN:
3.5.5. The hostname
The kernel maintains the system hostname. The init script in runlevel S which is symlinked to "/etc/init.d/hostname.sh" sets the system hostname at boot time (using the hostname command) to the name stored in "/etc/hostname". This file should contain only the system hostname, not a fully qualified domain name.
I haven't seen any specific recommendations from IBM about which to use, but some software seems to have a preference.
My questions:
- In a heterogeneous environment, is it better to use the vendor recommendation, or choose one and be consistent across all hosts?
- What software have you encountered which is sensitive to whether the hostname is set to the FQDN or short name?
I need to test sub-domains on my localhost. How can I effectively have this result of adding *.localhost.com
to my /etc/hosts/
file?
If it's not possible, how do I work around this problem? I need to test wildcard sub-domains on my localserver. It is a Django devserver, can the Django dev server handle the sub-domains? Can some other piece of software/routing give me the end result I want?
I would like to add an Environment variable to a Windows machine (desktop or server) and be able to use it without rebooting that machine.
Say you have a production server which hosts a variety of apps and a new app needs a particular Environment variable to run. You do not want to reboot it while users are connected to your other apps. What choices do you have? I don't like the wait-until-a-good-time-to-reboot option. There must be a better way. What am I missing?