Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • You know the Artifactory docker repository URL where your desired image currently is or will be located
  • Valid credentials with access to desired repository
  • Your machine where you will work with Docker.

    Info

     It can be virtual machine, server, testbed, laptop, workstation - this is up to you and your possibilities.


  • Docker client installed on your testbed/workstation

    info

    your machine according to TODO

  • Proper connectivity from your machine to repository URL

Docker installation

There is

...

multiple ways how to install docker client. You need to have sudo access on your machine to be able to setup Docker.

We recommend this:

  • on CentOS/Fedora

    :

    Code Block
    sudo yum install docker -y
    Or


  • on Ubuntu

    :

    Testbed access

    Code Block
    sudo apt install docker -y
  • Proper connectivity from your testbed/workstation to repository URL
  • User has sudo/administrator access on testbed

For using docker without "sudo" user must be member of "docker" group on testbed to be able to utilize docker properly without need to type sudo all the time:

Code Block
sudo groupadd docker
sudo usermod -a -G docker $USER

...

sudo 

...

systemctl 

...

restart docker
docker version

Docker daemon unix socket is owned by root user, standard user cannot operate docker by default. However, docker daemon can be controlled by members of "docker" group, so we are utilising this

...

possibility.

Login

To be able to work with private docker registry/repository, users must login first. More information can be found at https://docs.docker.com/engine/reference/commandline/login/

Code Block
docker login <REPOSITORY_URL>

# Or with providing username to avoid asking username repeatedly
docker login -u <USER_NAME> <REPOSITORY_URL>

# Or with providing username and password to avoid asking credentials - do not use in shared environments as other users could be able to find your password in plaintext in command history
docker login -u <USER_NAME> -p <USER_PASSWORD> <REPOSITORY_URL>

...

Code Block
docker run <REPOSITORY_KEY>.artifactory.shared.tds.CUSTOMERX.com/<IMAGE>:<TAG>

Stopping container

Code Block
docker stop <CONTAINER>

Other helpful commands

Clearing local docker data

...