admin@1edc6a418cd8:~$ sudo passwd -e local-user passwd: password expiry information changed. 

After it is created, the new Docker user can SSH into the container and use Docker with the following command: 

ssh local-user@129.40.23.79 -p 8022 

This command results in a logon on the local zCX instance. 

admin@1edc6a418cd8:~$ ssh local-user@129.40.23.79 -p 8022 The authenticity of host '[129.40.23.79]:8022 ([129.40.23.79]:8022)' can't be established. ECDSA key fingerprint is SHA256:IA5Sw4oNK7wODhFGkH4ayyJNvT73m1uvQprHjqOC41M. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[129.40.23.79]:8022' (ECDSA) to the list of known hosts. local-user@129.40.23.79's password: < current_password > You are required to change your password immediately (root enforced) Welcome to the IBM z/OS Container Extensions (IBM zCX) shell that provides access to Docker commands. For more information on how to use this shell to execute Docker commands refer to "IBM z/OS Container Extensions Guide". WARNING: Your password has expired. You must change your password now and login again! Changing password for local-user. (current) UNIX password: < current_password > Enter new UNIX password: < new_password > Retype new UNIX password: < new_password > passwd: password updated successfully 

If this is the first time that you are logging on to the machine, you must confirm the ssh key with YES . Afterward, you must log on with the password that was initially set as shown in Example 9-1 on page 222. At that point, you are forced to change it to a new password. 

## Adding Docker administrators 

You create additional Docker administrators by adding Docker users to the Groups ‘Docker’ and giving them sudo access. The only abilities that the Docker Admin has beyond that of a standard Docker User is to add, modify, and delete other Users and Admins. An administrator can create additional Docker administrators by using the command shown in Example 9-5. 

admin@1edc6a418cd8:~$ sudo adduser local-admin Adding user `local-admin' ... Adding new group `local-admin' (1002) ... Adding new user `local-admin' (1003) with group `local-admin' ... Creating home directory `/home/local-admin' ... Copying files from `/etc/skel' ... Enter new UNIX password: < password > Retype new UNIX password: < password > passwd: password updated successfully Changing the user information for local-admin Enter the new value, or press ENTER for the default Full Name []: < details > Room Number []: < details > Work Phone []: < details > 

