Openshift tips, tricks and cheats

Posted: 9 January 2017 in OpenShift

Here are a few tips and tricks and stored commands I use when dealing with Openshift.

start/stop openshift

systemctl start atomic-openshift-master

systemctl stop atomic-openshift-master

start/stop docker

systemctl start docker

systemctl stop docker

Login as an administator

oc login -u system:admin

Configure login into an external docker repository

oc secrets new-dockercfg docker-snapshots \
 --docker-username=$LDAP_USERNAME \
 --docker-password=$LDAP_PASSWORD \

Manually login in he private docker repository

export AUTH_TOKEN=`oc whoami -t`

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s