If you want to create a new user within a Dockerfile for an Alpine Linux, useradd won’t work. You have to use adduser. This command will work adduser -h /home/userx… [Weiterlesen]
Monat: April 2017
Untar to a specific target directory
tar xvf /opt/metricbeat.tar.gz -C /opt/metricbeat –strip-components=1 If the tar-file already contains a directory, you have to add –strip-components=1. Otherwise the directory contained in the tar files is created. Also mind… [Weiterlesen]
Docker: essential commands for cleaning up
Remove all unused images docker images –no-trunc | grep ‚‚ | awk ‚{ print $3 }‘ | xargs -r docker rmi Remove all activate containers: docker rm $(docker ps -a… [Weiterlesen]