Proxy to Nexus Repository
SSH Configuration
Host example-network
HostName 192.168.0.1
User someusername
PasswordAuthentication no
PubkeyAuthentication yes
IdentityFile ~/.ssh/example_network_id_ed25519
IdentitiesOnly yes
Port 22
ServerAliveInterval 10
ServerAliveCountMax 2
Compression yes
TCPKeepAlive yes
GatewayPorts yes
RemoteForward 5020
RemoteForward 6989 docker.example.com:6989
Pushing a new image
- Login to Nexus repository
docker login localhost:6989 --tls-verify=false
docker push <image ID> localhost:6989/<folder>/<image name> --tls-verify=false