ifconfig -a # If you have net-tools instaled
Or
ip -a
vi /etc/sysconfig/network-scripts/ifcfg-en0xx # [Replace 'en0xx' with your Network Card e.g. en0]
#!/bin/bash | |
brew update # Fetch latest version of homebrew and formula. | |
brew tap caskroom/cask # Tap the Caskroom/Cask repository from Github using HTTPS. | |
brew search virtualbox # Searches all known Casks for a partial or exact match. | |
brew cask info virtualbox # Displays information about the given Cask | |
brew cask install virtualbox # Install the given cask. |
OpenSSL provides different features and tools for SSL/TLS related operations. s_lient is a tool used to connect, check, list HTTPS, TLS/SSL related information. Simply we can check remote TLS/SSL connection with s_client . In these tutorials, we will look at different use cases of s_client .
The basic and most popular use case for s_client is just connecting remote TLS/SSL website. We will provide the web site with the HTTPS port number. In this example we will connect to the poftut.com .
$ openssl s_client -connect poftut.com:443
docker build -t friendlyhello . # Create image using this directory's Dockerfile | |
docker build -t <tag_name> . # Docker build | |
docker run --name <container_name> <image_name> # Run a container | |
docker run -p 4000:80 friendlyhello # Run "friendlyname" mapping port 4000 to 80 | |
docker run -d -p 4000:80 friendlyhello # Same thing, but in detached mode | |
docker run --rm -it --name <container_name> -d -p <DockerHostPort:ContainerPort> -v </path/in/host:/path/in/container> <image_name> bash # Run a container with some arguments | |
docker container ls # List all running containers | |
docker container ls -a # List all containers, even those not running | |
docker container stop <hash> # Gracefully stop the specified container |
## DOCKER COMPOSE | |
## Run | |
docker-compose up # Run compose file | |
docker-compose up -d # Run compose file in background | |
## Restart | |
docker-compose restart | |
### Only build |